summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-12-13 02:25:45 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-12-13 02:25:45 +0000
commit77f0100f1fd900449eda0a4682c15c4bf20fee1e (patch)
tree7dcbb3c5f09a6fea8e6891857930af5c8d82ef68 /bindings
parent4e703f82f251f30af75c7e6559398b90e076eebc (diff)
Go bindings: remove contextless metadata bindings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/go/llvm/ir.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/bindings/go/llvm/ir.go b/bindings/go/llvm/ir.go
index 7834f5c2c3..af2aeffcc1 100644
--- a/bindings/go/llvm/ir.go
+++ b/bindings/go/llvm/ir.go
@@ -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) {