Go: add binding for LLVMSetUnnamedAddr.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Oct 2014 20:20:27 +0000 (20:20 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Oct 2014 20:20:27 +0000 (20:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220416 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/go/llvm/ir.go

index 520bd21..7834f5c 100644 (file)
@@ -956,6 +956,7 @@ func (v Value) Visibility() Visibility      { return Visibility(C.LLVMGetVisibil
 func (v Value) SetVisibility(vi Visibility) { C.LLVMSetVisibility(v.C, C.LLVMVisibility(vi)) }
 func (v Value) Alignment() int              { return int(C.LLVMGetAlignment(v.C)) }
 func (v Value) SetAlignment(a int)          { C.LLVMSetAlignment(v.C, C.unsigned(a)) }
+func (v Value) SetUnnamedAddr(ua bool)      { C.LLVMSetUnnamedAddr(v.C, boolToLLVMBool(ua)) }
 
 // Operations on global variables
 func AddGlobal(m Module, t Type, name string) (v Value) {