@@ -825,7 +825,8 @@ pub fn trans_external_path(ccx: &mut CrateContext, did: ast::DefId, t: ty::t)
825825 };
826826}
827827
828- pub fn invoke(bcx: @mut Block, llfn: ValueRef, llargs: ~[ValueRef])
828+ pub fn invoke(bcx: @mut Block, llfn: ValueRef, llargs: ~[ValueRef],
829+ attributes: &[(uint, lib::llvm::Attribute)])
829830 -> (ValueRef, @mut Block) {
830831 let _icx = push_ctxt(" invoke_") ;
831832 if bcx. unreachable {
@@ -865,7 +866,7 @@ pub fn invoke(bcx: @mut Block, llfn: ValueRef, llargs: ~[ValueRef])
865866 debug ! ( "arg: %x" , :: std:: cast:: transmute( llarg) ) ;
866867 }
867868 }
868- let llresult = Call ( bcx, llfn, llargs) ;
869+ let llresult = Call ( bcx, llfn, llargs, attributes ) ;
869870 return ( llresult, bcx) ;
870871 }
871872}
@@ -976,7 +977,7 @@ pub fn get_landing_pad(bcx: @mut Block) -> BasicBlockRef {
976977 // Because we may have unwound across a stack boundary, we must call into
977978 // the runtime to figure out which stack segment we are on and place the
978979 // stack limit back into the TLS.
979- Call ( pad_bcx, bcx. ccx ( ) . upcalls . reset_stack_limit , [ ] ) ;
980+ Call ( pad_bcx, bcx. ccx ( ) . upcalls . reset_stack_limit , [ ] , [ ] ) ;
980981
981982 // We store the retval in a function-central alloca, so that calls to
982983 // Resume can find it.
@@ -1071,7 +1072,7 @@ pub fn trans_trace(bcx: @mut Block, sp_opt: Option<Span>, trace_str: @str) {
10711072 let V_trace_str = PointerCast(bcx, V_trace_str, Type::i8p());
10721073 let V_filename = PointerCast(bcx, V_filename, Type::i8p());
10731074 let args = ~[V_trace_str, V_filename, C_int(ccx, V_line)];
1074- Call(bcx, ccx.upcalls.trace, args);
1075+ Call(bcx, ccx.upcalls.trace, args, [] );
10751076}
10761077
10771078pub fn ignore_lhs(_bcx: @mut Block, local: &ast::Local) -> bool {
@@ -1465,7 +1466,7 @@ pub fn call_memcpy(cx: @mut Block, dst: ValueRef, src: ValueRef, n_bytes: ValueR
14651466 let size = IntCast ( cx, n_bytes, ccx. int_type ) ;
14661467 let align = C_i32 ( align as i32 ) ;
14671468 let volatile = C_i1 ( false ) ;
1468- Call ( cx, memcpy, [ dst_ptr, src_ptr, size, align, volatile] ) ;
1469+ Call ( cx, memcpy, [ dst_ptr, src_ptr, size, align, volatile] , [ ] ) ;
14691470}
14701471
14711472pub fn memcpy_ty ( bcx : @mut Block , dst : ValueRef , src : ValueRef , t : ty:: t ) {
@@ -1510,7 +1511,7 @@ pub fn memzero(b: &Builder, llptr: ValueRef, ty: Type) {
15101511 let size = machine:: llsize_of ( ccx, ty) ;
15111512 let align = C_i32 ( llalign_of_min ( ccx, ty) as i32 ) ;
15121513 let volatile = C_i1 ( false ) ;
1513- b. call ( llintrinsicfn, [ llptr, llzeroval, size, align, volatile] ) ;
1514+ b. call ( llintrinsicfn, [ llptr, llzeroval, size, align, volatile] , [ ] ) ;
15141515}
15151516
15161517pub fn alloc_ty ( bcx : @mut Block , t : ty:: t , name : & str ) -> ValueRef {
@@ -2353,7 +2354,7 @@ pub fn create_entry_wrapper(ccx: @mut CrateContext,
23532354 llvm:: LLVMGetParam ( llfdecl, env_arg as c_uint )
23542355 } ;
23552356 let args = ~[ llenvarg] ;
2356- Call ( bcx, main_llfn, args) ;
2357+ Call ( bcx, main_llfn, args, [ ] ) ;
23572358
23582359 finish_fn ( fcx, bcx) ;
23592360 return llfdecl;
@@ -2808,7 +2809,7 @@ pub fn declare_dbg_intrinsics(llmod: ModuleRef, intrinsics: &mut HashMap<&'stati
28082809
28092810pub fn trap ( bcx : @mut Block ) {
28102811 match bcx. ccx ( ) . intrinsics . find_equiv ( & & "llvm.trap" ) {
2811- Some ( & x) => { Call ( bcx, x, [ ] ) ; } ,
2812+ Some ( & x) => { Call ( bcx, x, [ ] , [ ] ) ; } ,
28122813 _ => bcx. sess ( ) . bug ( "unbound llvm.trap in trap" )
28132814 }
28142815}
0 commit comments