Skip to content

Commit 92607fd

Browse files
committed
cmd/compile: split dumptypestructs further
This is preparatory cleanup to make future changes clearer. Change-Id: I20fb9c78257de61b8bd096fce6b1e751995c01f2 Reviewed-on: https://go-review.googlesource.com/41818 Run-TryBot: Josh Bleecher Snyder <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 3ddf650 commit 92607fd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/cmd/compile/internal/gc/obj.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ func dumpobj1(outfile string, mode int) {
137137

138138
dumpglobls()
139139
addptabs()
140-
dumptypestructs(externdcl)
140+
addsignats(externdcl)
141+
dumpsignats()
141142
dumptabs()
142143
dumpimportstrings()
143144
dumpbasictypes()

src/cmd/compile/internal/gc/reflect.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,14 +1404,16 @@ func addsignat(t *types.Type) {
14041404
signatlist[formalType(t)] = true
14051405
}
14061406

1407-
func dumptypestructs(dcls []*Node) {
1407+
func addsignats(dcls []*Node) {
14081408
// copy types from dcl list to signatlist
14091409
for _, n := range dcls {
14101410
if n.Op == OTYPE {
14111411
addsignat(n.Type)
14121412
}
14131413
}
1414+
}
14141415

1416+
func dumpsignats() {
14151417
// Process signatlist. Use a loop, as dtypesym adds
14161418
// entries to signatlist while it is being processed.
14171419
signats := make([]typeAndStr, len(signatlist))

0 commit comments

Comments
 (0)