[llvm] r286085 - Remove functions from go bindings that have been deleted in r286062.

Daniel Jasper via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 6 13:02:15 PST 2016


Author: djasper
Date: Sun Nov  6 15:02:14 2016
New Revision: 286085

URL: http://llvm.org/viewvc/llvm-project?rev=286085&view=rev
Log:
Remove functions from go bindings that have been deleted in r286062.

Modified:
    llvm/trunk/bindings/go/llvm/IRBindings.cpp
    llvm/trunk/bindings/go/llvm/IRBindings.h

Modified: llvm/trunk/bindings/go/llvm/IRBindings.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/IRBindings.cpp?rev=286085&r1=286084&r2=286085&view=diff
==============================================================================
--- llvm/trunk/bindings/go/llvm/IRBindings.cpp (original)
+++ llvm/trunk/bindings/go/llvm/IRBindings.cpp Sun Nov  6 15:02:14 2016
@@ -21,34 +21,12 @@
 
 using namespace llvm;
 
-void LLVMAddFunctionAttr2(LLVMValueRef Fn, uint64_t PA) {
-  Function *Func = unwrap<Function>(Fn);
-  const AttributeSet PAL = Func->getAttributes();
-  AttrBuilder B(PA);
-  const AttributeSet PALnew =
-    PAL.addAttributes(Func->getContext(), AttributeSet::FunctionIndex,
-                      AttributeSet::get(Func->getContext(),
-                                        AttributeSet::FunctionIndex, B));
-  Func->setAttributes(PALnew);
-}
-
 uint64_t LLVMGetFunctionAttr2(LLVMValueRef Fn) {
   Function *Func = unwrap<Function>(Fn);
   const AttributeSet PAL = Func->getAttributes();
   return PAL.Raw(AttributeSet::FunctionIndex);
 }
 
-void LLVMRemoveFunctionAttr2(LLVMValueRef Fn, uint64_t PA) {
-  Function *Func = unwrap<Function>(Fn);
-  const AttributeSet PAL = Func->getAttributes();
-  AttrBuilder B(PA);
-  const AttributeSet PALnew =
-    PAL.removeAttributes(Func->getContext(), AttributeSet::FunctionIndex,
-                         AttributeSet::get(Func->getContext(),
-                                           AttributeSet::FunctionIndex, B));
-  Func->setAttributes(PALnew);
-}
-
 LLVMMetadataRef LLVMConstantAsMetadata(LLVMValueRef C) {
   return wrap(ConstantAsMetadata::get(unwrap<Constant>(C)));
 }

Modified: llvm/trunk/bindings/go/llvm/IRBindings.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/IRBindings.h?rev=286085&r1=286084&r2=286085&view=diff
==============================================================================
--- llvm/trunk/bindings/go/llvm/IRBindings.h (original)
+++ llvm/trunk/bindings/go/llvm/IRBindings.h Sun Nov  6 15:02:14 2016
@@ -33,9 +33,7 @@ typedef struct LLVMOpaqueMetadata *LLVMM
 // values, and the Go bindings expose all of the LLVM attributes, some of which
 // have values >= 1<<32.
 
-void LLVMAddFunctionAttr2(LLVMValueRef Fn, uint64_t PA);
 uint64_t LLVMGetFunctionAttr2(LLVMValueRef Fn);
-void LLVMRemoveFunctionAttr2(LLVMValueRef Fn, uint64_t PA);
 
 LLVMMetadataRef LLVMConstantAsMetadata(LLVMValueRef Val);
 




More information about the llvm-commits mailing list