@@ -2460,7 +2460,7 @@ void LLVMSetGC(LLVMValueRef Fn, const char *GC) {
2460
2460
2461
2461
void LLVMAddAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx,
2462
2462
LLVMAttributeRef A) {
2463
- unwrap<Function>(F)->addAttribute (Idx, unwrap (A));
2463
+ unwrap<Function>(F)->addAttributeAtIndex (Idx, unwrap (A));
2464
2464
}
2465
2465
2466
2466
unsigned LLVMGetAttributeCountAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx) {
@@ -2478,24 +2478,25 @@ void LLVMGetAttributesAtIndex(LLVMValueRef F, LLVMAttributeIndex Idx,
2478
2478
LLVMAttributeRef LLVMGetEnumAttributeAtIndex (LLVMValueRef F,
2479
2479
LLVMAttributeIndex Idx,
2480
2480
unsigned KindID) {
2481
- return wrap (unwrap<Function>(F)->getAttribute (Idx,
2482
- (Attribute::AttrKind)KindID));
2481
+ return wrap (unwrap<Function>(F)->getAttributeAtIndex (
2482
+ Idx, (Attribute::AttrKind)KindID));
2483
2483
}
2484
2484
2485
2485
LLVMAttributeRef LLVMGetStringAttributeAtIndex (LLVMValueRef F,
2486
2486
LLVMAttributeIndex Idx,
2487
2487
const char *K, unsigned KLen) {
2488
- return wrap (unwrap<Function>(F)->getAttribute (Idx, StringRef (K, KLen)));
2488
+ return wrap (
2489
+ unwrap<Function>(F)->getAttributeAtIndex (Idx, StringRef (K, KLen)));
2489
2490
}
2490
2491
2491
2492
void LLVMRemoveEnumAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx,
2492
2493
unsigned KindID) {
2493
- unwrap<Function>(F)->removeAttribute (Idx, (Attribute::AttrKind)KindID);
2494
+ unwrap<Function>(F)->removeAttributeAtIndex (Idx, (Attribute::AttrKind)KindID);
2494
2495
}
2495
2496
2496
2497
void LLVMRemoveStringAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx,
2497
2498
const char *K, unsigned KLen) {
2498
- unwrap<Function>(F)->removeAttribute (Idx, StringRef (K, KLen));
2499
+ unwrap<Function>(F)->removeAttributeAtIndex (Idx, StringRef (K, KLen));
2499
2500
}
2500
2501
2501
2502
void LLVMAddTargetDependentFunctionAttr (LLVMValueRef Fn, const char *A,
@@ -2862,12 +2863,12 @@ void LLVMSetInstrParamAlignment(LLVMValueRef Instr, unsigned index,
2862
2863
auto *Call = unwrap<CallBase>(Instr);
2863
2864
Attribute AlignAttr =
2864
2865
Attribute::getWithAlignment (Call->getContext (), Align (align));
2865
- Call->addAttribute (index , AlignAttr);
2866
+ Call->addAttributeAtIndex (index , AlignAttr);
2866
2867
}
2867
2868
2868
2869
void LLVMAddCallSiteAttribute (LLVMValueRef C, LLVMAttributeIndex Idx,
2869
2870
LLVMAttributeRef A) {
2870
- unwrap<CallBase>(C)->addAttribute (Idx, unwrap (A));
2871
+ unwrap<CallBase>(C)->addAttributeAtIndex (Idx, unwrap (A));
2871
2872
}
2872
2873
2873
2874
unsigned LLVMGetCallSiteAttributeCount (LLVMValueRef C,
@@ -2888,24 +2889,25 @@ void LLVMGetCallSiteAttributes(LLVMValueRef C, LLVMAttributeIndex Idx,
2888
2889
LLVMAttributeRef LLVMGetCallSiteEnumAttribute (LLVMValueRef C,
2889
2890
LLVMAttributeIndex Idx,
2890
2891
unsigned KindID) {
2891
- return wrap (
2892
- unwrap<CallBase>(C)-> getAttribute ( Idx, (Attribute::AttrKind)KindID));
2892
+ return wrap (unwrap<CallBase>(C)-> getAttributeAtIndex (
2893
+ Idx, (Attribute::AttrKind)KindID));
2893
2894
}
2894
2895
2895
2896
LLVMAttributeRef LLVMGetCallSiteStringAttribute (LLVMValueRef C,
2896
2897
LLVMAttributeIndex Idx,
2897
2898
const char *K, unsigned KLen) {
2898
- return wrap (unwrap<CallBase>(C)->getAttribute (Idx, StringRef (K, KLen)));
2899
+ return wrap (
2900
+ unwrap<CallBase>(C)->getAttributeAtIndex (Idx, StringRef (K, KLen)));
2899
2901
}
2900
2902
2901
2903
void LLVMRemoveCallSiteEnumAttribute (LLVMValueRef C, LLVMAttributeIndex Idx,
2902
2904
unsigned KindID) {
2903
- unwrap<CallBase>(C)->removeAttribute (Idx, (Attribute::AttrKind)KindID);
2905
+ unwrap<CallBase>(C)->removeAttributeAtIndex (Idx, (Attribute::AttrKind)KindID);
2904
2906
}
2905
2907
2906
2908
void LLVMRemoveCallSiteStringAttribute (LLVMValueRef C, LLVMAttributeIndex Idx,
2907
2909
const char *K, unsigned KLen) {
2908
- unwrap<CallBase>(C)->removeAttribute (Idx, StringRef (K, KLen));
2910
+ unwrap<CallBase>(C)->removeAttributeAtIndex (Idx, StringRef (K, KLen));
2909
2911
}
2910
2912
2911
2913
LLVMValueRef LLVMGetCalledValue (LLVMValueRef Instr) {
0 commit comments