]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add sources for inlined functions to ssa.html
authorYury Smolsky <yury@smolsky.by>
Thu, 26 Jul 2018 09:51:06 +0000 (12:51 +0300)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Aug 2018 05:11:33 +0000 (05:11 +0000)
commit9e2a04d5ebe450defe3435d827ef07ca3c0eae3f
tree7659fe966c8910aad75c3826e926f08ce43ebce6
parentc374984e99888bb2e2dd6c331a1328275debe19d
cmd/compile: add sources for inlined functions to ssa.html

This CL adds the source code of all inlined functions
into the function specified in $GOSSAFUNC.
The code is appended to the sources column of ssa.html.

ssaDumpInlined is populated with references to inlined functions.
Then it is used for dumping the sources in buildssa.

The source columns contains code in following order:
target function, inlined functions sorted by filename, lineno.

Fixes #25904

Change-Id: I4f6d4834376f1efdfda1f968a5335c0543ed36bc
Reviewed-on: https://go-review.googlesource.com/126606
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/inl.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/html.go