Skip to content

Commit 5e157db

Browse files
committed
cmd/compile: make Class a Stringer
Change-Id: I7fd137d01ab5a0690773ca6e47d2bd796f0e393e Reviewed-on: https://go-review.googlesource.com/42177 Run-TryBot: Josh Bleecher Snyder <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent a8e3852 commit 5e157db

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func isRuntimePkg(p *types.Pkg) bool {
3131
// called declaration contexts.
3232
type Class uint8
3333

34+
//go:generate stringer -type=Class
3435
const (
3536
Pxxx Class = iota // no class; used during ssa conversion to indicate pseudo-variables
3637
PEXTERN // global variable

0 commit comments

Comments
 (0)