@@ -19,7 +19,7 @@ use type_of::LayoutLlvmExt;
1919use value:: Value ;
2020use libc:: { c_uint, c_char} ;
2121use rustc:: ty:: { self , Ty , TyCtxt } ;
22- use rustc:: ty:: layout:: { self , Align , Size , TyLayout } ;
22+ use rustc:: ty:: layout:: { self , AbiAndPrefAlign , Size , TyLayout } ;
2323use rustc:: session:: config;
2424use rustc_data_structures:: small_c_str:: SmallCStr ;
2525use rustc_codegen_ssa:: traits:: * ;
@@ -457,15 +457,15 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
457457 }
458458 }
459459
460- fn alloca ( & mut self , ty : & ' ll Type , name : & str , align : Align ) -> & ' ll Value {
460+ fn alloca ( & mut self , ty : & ' ll Type , name : & str , align : AbiAndPrefAlign ) -> & ' ll Value {
461461 let mut bx = Builder :: with_cx ( self . cx ) ;
462462 bx. position_at_start ( unsafe {
463463 llvm:: LLVMGetFirstBasicBlock ( self . llfn ( ) )
464464 } ) ;
465465 bx. dynamic_alloca ( ty, name, align)
466466 }
467467
468- fn dynamic_alloca ( & mut self , ty : & ' ll Type , name : & str , align : Align ) -> & ' ll Value {
468+ fn dynamic_alloca ( & mut self , ty : & ' ll Type , name : & str , align : AbiAndPrefAlign ) -> & ' ll Value {
469469 self . count_insn ( "alloca" ) ;
470470 unsafe {
471471 let alloca = if name. is_empty ( ) {
@@ -484,7 +484,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
484484 ty : & ' ll Type ,
485485 len : & ' ll Value ,
486486 name : & str ,
487- align : Align ) -> & ' ll Value {
487+ align : AbiAndPrefAlign ) -> & ' ll Value {
488488 self . count_insn ( "alloca" ) ;
489489 unsafe {
490490 let alloca = if name. is_empty ( ) {
@@ -499,7 +499,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
499499 }
500500 }
501501
502- fn load ( & mut self , ptr : & ' ll Value , align : Align ) -> & ' ll Value {
502+ fn load ( & mut self , ptr : & ' ll Value , align : AbiAndPrefAlign ) -> & ' ll Value {
503503 self . count_insn ( "load" ) ;
504504 unsafe {
505505 let load = llvm:: LLVMBuildLoad ( self . llbuilder , ptr, noname ( ) ) ;
@@ -639,15 +639,15 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
639639 }
640640 }
641641
642- fn store ( & mut self , val : & ' ll Value , ptr : & ' ll Value , align : Align ) -> & ' ll Value {
642+ fn store ( & mut self , val : & ' ll Value , ptr : & ' ll Value , align : AbiAndPrefAlign ) -> & ' ll Value {
643643 self . store_with_flags ( val, ptr, align, MemFlags :: empty ( ) )
644644 }
645645
646646 fn store_with_flags (
647647 & mut self ,
648648 val : & ' ll Value ,
649649 ptr : & ' ll Value ,
650- align : Align ,
650+ align : AbiAndPrefAlign ,
651651 flags : MemFlags ,
652652 ) -> & ' ll Value {
653653 debug ! ( "Store {:?} -> {:?} ({:?})" , val, ptr, flags) ;
@@ -878,8 +878,8 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
878878 }
879879 }
880880
881- fn memcpy ( & mut self , dst : & ' ll Value , dst_align : Align ,
882- src : & ' ll Value , src_align : Align ,
881+ fn memcpy ( & mut self , dst : & ' ll Value , dst_align : AbiAndPrefAlign ,
882+ src : & ' ll Value , src_align : AbiAndPrefAlign ,
883883 size : & ' ll Value , flags : MemFlags ) {
884884 if flags. contains ( MemFlags :: NONTEMPORAL ) {
885885 // HACK(nox): This is inefficient but there is no nontemporal memcpy.
@@ -898,8 +898,8 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
898898 }
899899 }
900900
901- fn memmove ( & mut self , dst : & ' ll Value , dst_align : Align ,
902- src : & ' ll Value , src_align : Align ,
901+ fn memmove ( & mut self , dst : & ' ll Value , dst_align : AbiAndPrefAlign ,
902+ src : & ' ll Value , src_align : AbiAndPrefAlign ,
903903 size : & ' ll Value , flags : MemFlags ) {
904904 if flags. contains ( MemFlags :: NONTEMPORAL ) {
905905 // HACK(nox): This is inefficient but there is no nontemporal memmove.
@@ -923,7 +923,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
923923 ptr : & ' ll Value ,
924924 fill_byte : & ' ll Value ,
925925 size : & ' ll Value ,
926- align : Align ,
926+ align : AbiAndPrefAlign ,
927927 flags : MemFlags ,
928928 ) {
929929 let ptr_width = & self . cx ( ) . sess ( ) . target . target . target_pointer_width ;
0 commit comments