[PATCH] D45402: [llgo] Move SetSubprogram

Robert Widmann via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 7 09:32:11 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL329505: [llgo] Move SetSubprogram (authored by CodaFi, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D45402?vs=141479&id=141490#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D45402

Files:
  llvm/trunk/bindings/go/llvm/dibuilder.go
  llvm/trunk/bindings/go/llvm/ir.go


Index: llvm/trunk/bindings/go/llvm/ir.go
===================================================================
--- llvm/trunk/bindings/go/llvm/ir.go
+++ llvm/trunk/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: llvm/trunk/bindings/go/llvm/dibuilder.go
===================================================================
--- llvm/trunk/bindings/go/llvm/dibuilder.go
+++ llvm/trunk/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.141490.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180407/358d486e/attachment.bin>


More information about the llvm-commits mailing list