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)) }