From 995034d1b131b08e6c9808b6a78e107e68323b0a Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 22 Oct 2014 20:20:27 +0000 Subject: [PATCH] Go: add binding for LLVMSetUnnamedAddr. llvm-svn: 220416 --- bindings/go/llvm/ir.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/go/llvm/ir.go b/bindings/go/llvm/ir.go index 520bd210d15..7834f5c2c34 100644 --- a/bindings/go/llvm/ir.go +++ b/bindings/go/llvm/ir.go @@ -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) {