OSDN Git Service

[llgo] Move SetSubprogram
authorRobert Widmann <devteam.codafi@gmail.com>
Sat, 7 Apr 2018 16:26:59 +0000 (16:26 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Sat, 7 Apr 2018 16:26:59 +0000 (16:26 +0000)
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

bindings/go/llvm/dibuilder.go
bindings/go/llvm/ir.go

index 6b8d999..a7eed58 100644 (file)
@@ -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
index 0a379e4..a82a59e 100644 (file)
@@ -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)) }