llvm.org GIT mirror llvm / 77f0100
Go bindings: remove contextless metadata bindings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224175 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Collingbourne 4 years ago
1 changed file(s) with 0 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
728728 v.C = C.LLVMMDStringInContext(c.C, cstr, C.unsigned(len(str)))
729729 return
730730 }
731 func MDString(str string) (v Value) {
732 cstr := C.CString(str)
733 defer C.free(unsafe.Pointer(cstr))
734 v.C = C.LLVMMDString(cstr, C.unsigned(len(str)))
735 return
736 }
737731 func (c Context) MDNode(vals []Value) (v Value) {
738732 ptr, nvals := llvmValueRefs(vals)
739733 v.C = C.LLVMMDNodeInContext(c.C, ptr, nvals)
740 return
741 }
742 func MDNode(vals []Value) (v Value) {
743 ptr, nvals := llvmValueRefs(vals)
744 v.C = C.LLVMMDNode(ptr, nvals)
745734 return
746735 }
747736