llvm.org GIT mirror llvm / 671c411
Remove functions from go bindings that have been deleted in r286062. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286085 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Jasper 3 years ago
2 changed file(s) with 0 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
2020
2121 using namespace llvm;
2222
23 void LLVMAddFunctionAttr2(LLVMValueRef Fn, uint64_t PA) {
24 Function *Func = unwrap(Fn);
25 const AttributeSet PAL = Func->getAttributes();
26 AttrBuilder B(PA);
27 const AttributeSet PALnew =
28 PAL.addAttributes(Func->getContext(), AttributeSet::FunctionIndex,
29 AttributeSet::get(Func->getContext(),
30 AttributeSet::FunctionIndex, B));
31 Func->setAttributes(PALnew);
32 }
33
3423 uint64_t LLVMGetFunctionAttr2(LLVMValueRef Fn) {
3524 Function *Func = unwrap(Fn);
3625 const AttributeSet PAL = Func->getAttributes();
3726 return PAL.Raw(AttributeSet::FunctionIndex);
38 }
39
40 void LLVMRemoveFunctionAttr2(LLVMValueRef Fn, uint64_t PA) {
41 Function *Func = unwrap(Fn);
42 const AttributeSet PAL = Func->getAttributes();
43 AttrBuilder B(PA);
44 const AttributeSet PALnew =
45 PAL.removeAttributes(Func->getContext(), AttributeSet::FunctionIndex,
46 AttributeSet::get(Func->getContext(),
47 AttributeSet::FunctionIndex, B));
48 Func->setAttributes(PALnew);
4927 }
5028
5129 LLVMMetadataRef LLVMConstantAsMetadata(LLVMValueRef C) {
3232 // values, and the Go bindings expose all of the LLVM attributes, some of which
3333 // have values >= 1<<32.
3434
35 void LLVMAddFunctionAttr2(LLVMValueRef Fn, uint64_t PA);
3635 uint64_t LLVMGetFunctionAttr2(LLVMValueRef Fn);
37 void LLVMRemoveFunctionAttr2(LLVMValueRef Fn, uint64_t PA);
3836
3937 LLVMMetadataRef LLVMConstantAsMetadata(LLVMValueRef Val);
4038