1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

Go: add binding for LLVMSetUnnamedAddr.

llvm-svn: 220416
This commit is contained in:
Peter Collingbourne 2014-10-22 20:20:27 +00:00
parent a6c059251d
commit 995034d1b1

View 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) {