[llgo] drop debug/DIBuilder.Declare
Summary:
Companion to D11864, which updates the
DIBuilder bindings to match a recent
change in the underlying API.
We drop the debug/DIBuilder.Declare method
for now, which is unused, as otherwise it will
be broken with the new DIBuilder API in the
Go bindings.
Reviewers: pcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D11891
llvm-svn: 246545
GitOrigin-RevId: 3b138079c9624c10c63ca858e48b68eed698b9b6
diff --git a/debug/debug.go b/debug/debug.go
index b8c6bf6..683c6be 100644
--- a/debug/debug.go
+++ b/debug/debug.go
@@ -147,31 +147,6 @@
d.fnFile = ""
}
-// Declare creates an llvm.dbg.declare call for the specified function
-// parameter or local variable.
-func (d *DIBuilder) Declare(b llvm.Builder, v ssa.Value, llv llvm.Value, paramIndex int) {
- tag := tagAutoVariable
- if paramIndex >= 0 {
- tag = tagArgVariable
- }
- var diFile llvm.Metadata
- var line int
- if file := d.fset.File(v.Pos()); file != nil {
- line = file.Line(v.Pos())
- diFile = d.getFile(file)
- }
- localVar := d.builder.CreateLocalVariable(d.scope(), llvm.DILocalVariable{
- Tag: tag,
- Name: llv.Name(),
- File: diFile,
- Line: line,
- ArgNo: paramIndex + 1,
- Type: d.DIType(v.Type()),
- })
- expr := d.builder.CreateExpression(nil)
- d.builder.InsertDeclareAtEnd(llv, localVar, expr, b.GetInsertBlock())
-}
-
// Value creates an llvm.dbg.value call for the specified register value.
func (d *DIBuilder) Value(b llvm.Builder, v ssa.Value, llv llvm.Value, paramIndex int) {
// TODO(axw)