cmd/compile: add flag for debugging PC-value tables

For example, `-d pctab=pctoinline` prints the PC-inline table and
inlining tree for every function.

Change-Id: Ia6b9ce4d83eed0b494318d40ffe06481ec5d58ab
Reviewed-on: https://go-review.googlesource.com/37235
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
David Lazar 2017-02-17 16:55:40 -05:00
parent 301149b9e4
commit 0824ae6dc1
4 changed files with 26 additions and 19 deletions

View file

@ -716,7 +716,7 @@ type Link struct {
Debugasm int32
Debugvlog int32
Debugdivmod int32
Debugpcln int32
Debugpcln string
Flag_shared bool
Flag_dynlink bool
Flag_optimize bool