compiler: don't show DebugRef with -dumpssa

This commit is contained in:
Ayke van Laethem
2018-09-15 18:45:46 +02:00
parent 2a20c0c7f0
commit 1d2e0cd259
+3
View File
@@ -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())