[llvm] r329505 - [llgo] Move SetSubprogram
Robert Widmann via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 7 09:26:59 PDT 2018
Author: codafi
Date: Sat Apr 7 09:26:59 2018
New Revision: 329505
URL: http://llvm.org/viewvc/llvm-project?rev=329505&view=rev
Log:
[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
Modified:
llvm/trunk/bindings/go/llvm/dibuilder.go
llvm/trunk/bindings/go/llvm/ir.go
Modified: llvm/trunk/bindings/go/llvm/dibuilder.go
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/dibuilder.go?rev=329505&r1=329504&r2=329505&view=diff
==============================================================================
--- llvm/trunk/bindings/go/llvm/dibuilder.go (original)
+++ llvm/trunk/bindings/go/llvm/dibuilder.go Sat Apr 7 09:26:59 2018
@@ -575,6 +575,10 @@ func (d *DIBuilder) InsertValueAtEnd(v V
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
Modified: llvm/trunk/bindings/go/llvm/ir.go
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/ir.go?rev=329505&r1=329504&r2=329505&view=diff
==============================================================================
--- llvm/trunk/bindings/go/llvm/ir.go (original)
+++ llvm/trunk/bindings/go/llvm/ir.go Sat Apr 7 09:26:59 2018
@@ -1138,9 +1138,6 @@ func (v Value) AddTargetDependentFunctio
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)) }
More information about the llvm-commits
mailing list