summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9796c09009e91f12eddb3fd2a4dc79e7d06b3d94 (patch)
tree45f91e4e280e031931833fcd57eeea7e52d8a372 /llvm/bindings
parentdd6d24b25392822ef4273816935c81b78d3d5225 (diff)
downloadbcm5719-llvm-9796c09009e91f12eddb3fd2a4dc79e7d06b3d94.tar.gz
bcm5719-llvm-9796c09009e91f12eddb3fd2a4dc79e7d06b3d94.zip
Go bindings: remove contextless metadata bindings.
llvm-svn: 224175
Diffstat (limited to 'llvm/bindings')
-rw-r--r--llvm/bindings/go/llvm/ir.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/bindings/go/llvm/ir.go b/llvm/bindings/go/llvm/ir.go
index 7834f5c2c34..af2aeffcc15 100644
--- a/llvm/bindings/go/llvm/ir.go
+++ b/llvm/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) {
OpenPOWER on IntegriCloud