From: Daniel Jasper Date: Sun, 6 Nov 2016 21:20:45 +0000 (+0000) Subject: Delete one more function that needs to go after r286062. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5183128797dd266a397277d7639b6878891f296f;p=llvm Delete one more function that needs to go after r286062. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286086 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/bindings/go/llvm/IRBindings.cpp b/bindings/go/llvm/IRBindings.cpp index 34ba33dd57e..20cc05043f2 100644 --- a/bindings/go/llvm/IRBindings.cpp +++ b/bindings/go/llvm/IRBindings.cpp @@ -21,12 +21,6 @@ using namespace llvm; -uint64_t LLVMGetFunctionAttr2(LLVMValueRef Fn) { - Function *Func = unwrap(Fn); - const AttributeSet PAL = Func->getAttributes(); - return PAL.Raw(AttributeSet::FunctionIndex); -} - LLVMMetadataRef LLVMConstantAsMetadata(LLVMValueRef C) { return wrap(ConstantAsMetadata::get(unwrap(C))); } diff --git a/bindings/go/llvm/IRBindings.h b/bindings/go/llvm/IRBindings.h index 6e713276b8f..48c080ff7b1 100644 --- a/bindings/go/llvm/IRBindings.h +++ b/bindings/go/llvm/IRBindings.h @@ -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);