compiler: use -dumpssa flag in interpreter

This is useful for debugging.
This commit is contained in:
Ayke van Laethem
2018-09-14 21:38:03 +02:00
parent 866a6edb5f
commit 5b4b6cfee2
2 changed files with 19 additions and 5 deletions
+1 -1
View File
@@ -307,7 +307,7 @@ func (c *Compiler) Parse(mainPath string, buildTags []string) error {
// continues at runtime).
// This should only happen when it hits a function call or the end
// of the block, ideally.
err := c.ir.Interpret(frame.fn.fn.Blocks[0])
err := c.ir.Interpret(frame.fn.fn.Blocks[0], c.dumpSSA)
if err != nil {
return err
}