]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add a flag to print the source line for generated rules
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 6 Jan 2020 21:43:51 +0000 (13:43 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 20 Feb 2020 14:58:21 +0000 (14:58 +0000)
commit24fa159a2e5cba1c0038af7ae55802eb58fcb591
tree0af2bdc94d1145d5d3d0cac6e439593cde8f9b94
parent49f8d45994b6782e4925057909e4896832334a26
cmd/compile: add a flag to print the source line for generated rules

When working on rulegen, I often find myself
searching the rules files to find the source of
generated code. Add a flag to make that easier.

The flag needs to be off by default,
so that adding a single rule doesn't cause a massive diff.

Change-Id: I5a6f09129dc6fceef7c9cd1ad7eee24f3880ba91
Reviewed-on: https://go-review.googlesource.com/c/go/+/213700
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/rulegen.go