@@ -300,6 +300,14 @@ extern "C" void LLVMRustAddFunctionAttributes(LLVMValueRef Fn, unsigned Index,
300
300
AddAttributes (F, Index, Attrs, AttrsLen);
301
301
}
302
302
303
+ extern " C" void LLVMRustAddCallSiteAttributes (LLVMValueRef Instr,
304
+ unsigned Index,
305
+ LLVMAttributeRef *Attrs,
306
+ size_t AttrsLen) {
307
+ CallBase *Call = unwrap<CallBase>(Instr);
308
+ AddAttributes (Call, Index, Attrs, AttrsLen);
309
+ }
310
+
303
311
extern " C" LLVMAttributeRef
304
312
LLVMRustCreateAttrNoValue (LLVMContextRef C, LLVMRustAttribute RustAttr) {
305
313
return wrap (Attribute::get (*unwrap (C), fromRust (RustAttr)));
@@ -327,12 +335,6 @@ LLVMRustGetEnumAttributeAtIndex(LLVMValueRef F, size_t index,
327
335
return LLVMGetEnumAttributeAtIndex (F, index, fromRust (RustAttr));
328
336
}
329
337
330
- extern " C" void LLVMRustAddCallSiteAttributes (LLVMValueRef Instr, unsigned Index,
331
- LLVMAttributeRef *Attrs, size_t AttrsLen) {
332
- CallBase *Call = unwrap<CallBase>(Instr);
333
- AddAttributes (Call, Index, Attrs, AttrsLen);
334
- }
335
-
336
338
extern " C" LLVMAttributeRef LLVMRustCreateAlignmentAttr (LLVMContextRef C,
337
339
uint64_t Bytes) {
338
340
return wrap (Attribute::getWithAlignment (*unwrap (C), llvm::Align (Bytes)));
0 commit comments