[PATCH] D45402: [llgo] Move SetSubprogram
Robert Widmann via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 7 00:44:53 PDT 2018
CodaFi created this revision.
CodaFi added a reviewer: whitequark.
Herald added a subscriber: llvm-commits.
Fixes the bots - I moved LLVMSetSubprogram into the DIBuilder bindings, so the Go bindings need to move as well.
Repository:
rL LLVM
https://reviews.llvm.org/D45402
Files:
bindings/go/llvm/dibuilder.go
bindings/go/llvm/ir.go
Index: bindings/go/llvm/ir.go
===================================================================
--- bindings/go/llvm/ir.go
+++ bindings/go/llvm/ir.go
@@ -1138,9 +1138,6 @@
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)) }
Index: bindings/go/llvm/dibuilder.go
===================================================================
--- bindings/go/llvm/dibuilder.go
+++ bindings/go/llvm/dibuilder.go
@@ -575,6 +575,10 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45402.141479.patch
Type: text/x-patch
Size: 802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180407/c89fe3cd/attachment.bin>
More information about the llvm-commits
mailing list