summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorRobert Widmann <devteam.codafi@gmail.com>2018-04-07 16:26:59 +0000
committerRobert Widmann <devteam.codafi@gmail.com>2018-04-07 16:26:59 +0000
commit5c87b2ea7b2dd3bc9042fad5acb0b1e74521ba21 (patch)
tree12169fbbef7402b990c416d7cefb43a61235215b /bindings
parent9c4e19d12723d744fe3449a05705fc0add395498 (diff)
[llgo] Move SetSubprogram
Summary: Fixes the bots - I moved LLVMSetSubprogram into the DIBuilder bindings, so the Go bindings need to move as well. Reviewers: whitequark Reviewed By: whitequark Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D45402 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/go/llvm/dibuilder.go4
-rw-r--r--bindings/go/llvm/ir.go3
2 files changed, 4 insertions, 3 deletions
diff --git a/bindings/go/llvm/dibuilder.go b/bindings/go/llvm/dibuilder.go
index 6b8d9997339..a7eed580650 100644
--- a/bindings/go/llvm/dibuilder.go
+++ b/bindings/go/llvm/dibuilder.go
@@ -575,6 +575,10 @@ func (d *DIBuilder) InsertValueAtEnd(v Value, diVarInfo, expr Metadata, bb Basic
return Value{C: result}
}
+func (v Value) SetSubprogram(sp Metadata) {
+ C.LLVMSetSubprogram(v.C, sp.C)
+}
+
func boolToCInt(v bool) C.int {
if v {
return 1
diff --git a/bindings/go/llvm/ir.go b/bindings/go/llvm/ir.go
index 0a379e47dc6..a82a59e5a33 100644
--- a/bindings/go/llvm/ir.go
+++ b/bindings/go/llvm/ir.go
@@ -1138,9 +1138,6 @@ func (v Value) AddTargetDependentFunctionAttr(attr, value string) {
func (v Value) SetPersonality(p Value) {
C.LLVMSetPersonalityFn(v.C, p.C)
}
-func (v Value) SetSubprogram(sp Metadata) {
- C.LLVMSetSubprogram(v.C, sp.C)
-}
// Operations on parameters
func (v Value) ParamsCount() int { return int(C.LLVMCountParams(v.C)) }