Go bindings: remove contextless metadata bindings.
[oota-llvm.git] / bindings / go / llvm / ir.go
index 7834f5c2c348957d82003f00defc94281dd4853d..af2aeffcc1563481a88b83d5c2fcacc4cf1e4691 100644 (file)
@@ -729,22 +729,11 @@ func (c Context) MDString(str string) (v Value) {
        v.C = C.LLVMMDStringInContext(c.C, cstr, C.unsigned(len(str)))
        return
 }
-func MDString(str string) (v Value) {
-       cstr := C.CString(str)
-       defer C.free(unsafe.Pointer(cstr))
-       v.C = C.LLVMMDString(cstr, C.unsigned(len(str)))
-       return
-}
 func (c Context) MDNode(vals []Value) (v Value) {
        ptr, nvals := llvmValueRefs(vals)
        v.C = C.LLVMMDNodeInContext(c.C, ptr, nvals)
        return
 }
-func MDNode(vals []Value) (v Value) {
-       ptr, nvals := llvmValueRefs(vals)
-       v.C = C.LLVMMDNode(ptr, nvals)
-       return
-}
 
 // Operations on scalar constants
 func ConstInt(t Type, n uint64, signExtend bool) (v Value) {