aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml
diff options
context:
space:
mode:
authorKeith Randall <keithr@alum.mit.edu>2018-12-07 10:00:36 -0800
committerKeith Randall <khr@golang.org>2018-12-11 20:24:45 +0000
commit01a1eaa10c95dbbb1decad79334a2d6f34dc6832 (patch)
treed824d641a07bd20488c5c0e075309966bd6b74e3 /src/encoding/xml
parentec510045675ac112184052bc303be190872fd51c (diff)
downloadgo-01a1eaa10c95dbbb1decad79334a2d6f34dc6832.tar.xz
cmd/compile: use innermost line number for -S
When functions are inlined, for instructions in the inlined body, does -S print the location of the call, or the location of the body? Right now, we do the former. I'd like to do the latter by default, it makes much more sense when reading disassembly. With mid-stack inlining enabled in more cases, this quandry will come up more often. The original behavior is still available with -S=2. Some tests use this mode (so they can find assembly generated by a particular source line). This helped me with understanding what the compiler was doing while fixing #29007. Change-Id: Id14a3a41e1b18901e7c5e460aa4caf6d940ed064 Reviewed-on: https://go-review.googlesource.com/c/153241 Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/encoding/xml')
0 files changed, 0 insertions, 0 deletions