llvm.org GIT mirror llvm / 596e63d
Go: add binding for LLVMSetUnnamedAddr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220416 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Collingbourne 5 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
955955 func (v Value) SetVisibility(vi Visibility) { C.LLVMSetVisibility(v.C, C.LLVMVisibility(vi)) }
956956 func (v Value) Alignment() int { return int(C.LLVMGetAlignment(v.C)) }
957957 func (v Value) SetAlignment(a int) { C.LLVMSetAlignment(v.C, C.unsigned(a)) }
958 func (v Value) SetUnnamedAddr(ua bool) { C.LLVMSetUnnamedAddr(v.C, boolToLLVMBool(ua)) }
958959
959960 // Operations on global variables
960961 func AddGlobal(m Module, t Type, name string) (v Value) {