mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
compiler: don't show DebugRef with -dumpssa
This commit is contained in:
@@ -1337,6 +1337,9 @@ func (c *Compiler) parseFunc(frame *Frame) error {
|
||||
c.builder.SetInsertPointAtEnd(frame.blocks[block])
|
||||
frame.currentBlock = block
|
||||
for _, instr := range block.Instrs {
|
||||
if _, ok := instr.(*ssa.DebugRef); ok {
|
||||
continue
|
||||
}
|
||||
if c.dumpSSA {
|
||||
if val, ok := instr.(ssa.Value); ok && val.Name() != "" {
|
||||
fmt.Printf("\t%s = %s\n", val.Name(), val.String())
|
||||
|
||||
Reference in New Issue
Block a user