improve vmgen.codeListing formatting (#10306)

* improve vmgen.codeListing formatting
* address comments
This commit is contained in:
Timothee Cour 2019-01-15 10:02:01 -08:00 • committed by Andreas Rumpf
commit beed27b75d
3 changed files with 26 additions and 14 deletions

View file

@ -86,7 +86,7 @@ proc codeListing(c: ControlFlowGraph, result: var string, start=0; last = -1) =
result.add("\n")
inc i
if i in jumpTargets: result.add("L" & $i & ": End\n")
# consider calling `asciitables.alignTable`
proc echoCfg*(c: ControlFlowGraph; start=0; last = -1) {.deprecated.} =
## echos the ControlFlowGraph for debugging purposes.