OSDN Git Service

Delete one more function that needs to go after r286062.
authorDaniel Jasper <djasper@google.com>
Sun, 6 Nov 2016 21:20:45 +0000 (21:20 +0000)
committerDaniel Jasper <djasper@google.com>
Sun, 6 Nov 2016 21:20:45 +0000 (21:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286086 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/go/llvm/IRBindings.cpp
bindings/go/llvm/IRBindings.h

index 34ba33d..20cc050 100644 (file)
 
 using namespace llvm;
 
-uint64_t LLVMGetFunctionAttr2(LLVMValueRef Fn) {
-  Function *Func = unwrap<Function>(Fn);
-  const AttributeSet PAL = Func->getAttributes();
-  return PAL.Raw(AttributeSet::FunctionIndex);
-}
-
 LLVMMetadataRef LLVMConstantAsMetadata(LLVMValueRef C) {
   return wrap(ConstantAsMetadata::get(unwrap<Constant>(C)));
 }
index 6e71327..48c080f 100644 (file)
@@ -33,8 +33,6 @@ typedef struct LLVMOpaqueMetadata *LLVMMetadataRef;
 // values, and the Go bindings expose all of the LLVM attributes, some of which
 // have values >= 1<<32.
 
-uint64_t LLVMGetFunctionAttr2(LLVMValueRef Fn);
-
 LLVMMetadataRef LLVMConstantAsMetadata(LLVMValueRef Val);
 
 LLVMMetadataRef LLVMMDString2(LLVMContextRef C, const char *Str, unsigned SLen);