[PATCH] D11891: [llgo] update to new DIBuilder API
Andrew Wilkins via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 05:18:48 PDT 2015
axw updated this revision to Diff 33314.
axw added a comment.
Delete unused Declare method
http://reviews.llvm.org/D11891
Files:
debug/debug.go
Index: debug/debug.go
===================================================================
--- debug/debug.go
+++ 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11891.33314.patch
Type: text/x-patch
Size: 1103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150827/84e979a9/attachment.bin>
More information about the llvm-commits
mailing list