@@ -30,7 +30,7 @@ use back::{link, abi};
30
30
use driver:: session;
31
31
use driver:: session:: Session ;
32
32
use lib:: llvm:: { ContextRef , ModuleRef , ValueRef , BasicBlockRef } ;
33
- use lib:: llvm:: { llvm, True , False } ;
33
+ use lib:: llvm:: { llvm, True } ;
34
34
use lib;
35
35
use metadata:: common:: LinkMeta ;
36
36
use metadata:: { csearch, cstore, encoder} ;
@@ -1462,7 +1462,7 @@ pub fn zero_mem(cx: block, llptr: ValueRef, t: ty::t) {
1462
1462
// allocation for large data structures, and the generated code will be
1463
1463
// awful. (A telltale sign of this is large quantities of
1464
1464
// `mov [byte ptr foo],0` in the generated code.)
1465
- pub fn memzero( cx: block, llptr: ValueRef , llty : TypeRef ) {
1465
+ pub fn memzero( cx: block, llptr: ValueRef , ty : Type ) {
1466
1466
let _icx = cx. insn_ctxt( "memzero" ) ;
1467
1467
let ccx = cx. ccx( ) ;
1468
1468
@@ -1493,7 +1493,7 @@ pub fn alloca(cx: block, ty: Type) -> ValueRef {
1493
1493
alloca_maybe_zeroed( cx, ty, false )
1494
1494
}
1495
1495
1496
- pub fn alloca_maybe_zeroed( cx: block, t : TypeRef , zero: bool) -> ValueRef {
1496
+ pub fn alloca_maybe_zeroed( cx: block, ty : Type , zero: bool) -> ValueRef {
1497
1497
let _icx = cx. insn_ctxt( "alloca" ) ;
1498
1498
if cx. unreachable {
1499
1499
unsafe {
@@ -1506,7 +1506,7 @@ pub fn alloca_maybe_zeroed(cx: block, t: TypeRef, zero: bool) -> ValueRef {
1506
1506
p
1507
1507
}
1508
1508
1509
- pub fn arrayalloca( cx: block, t : TypeRef , v: ValueRef ) -> ValueRef {
1509
+ pub fn arrayalloca( cx: block, ty : Type , v: ValueRef ) -> ValueRef {
1510
1510
let _icx = cx. insn_ctxt( "arrayalloca" ) ;
1511
1511
if cx. unreachable {
1512
1512
unsafe {
@@ -2885,8 +2885,7 @@ pub fn write_metadata(cx: &mut CrateContext, crate: &ast::crate) {
2885
2885
2886
2886
// Writes the current ABI version into the crate.
2887
2887
pub fn write_abi_version ( ccx : & mut CrateContext ) {
2888
- mk_global ( ccx, "rust_abi_version" , C_uint ( ccx, abi:: abi_version) ,
2889
- false ) ;
2888
+ mk_global ( ccx, "rust_abi_version" , C_uint ( ccx, abi:: abi_version) , false ) ;
2890
2889
}
2891
2890
2892
2891
pub fn trans_crate ( sess : session:: Session ,
0 commit comments