Skip to content

Commit 91d08e3

Browse files
committed
cmd/compile/internal/ssa: remove unused OpFunc
Change-Id: I0f7eec2e0c15a355422d5ae7289508a5bd33b971 Reviewed-on: https://go-review.googlesource.com/38171 Run-TryBot: Matthew Dempsky <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 295307a commit 91d08e3

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/cmd/compile/internal/ssa/gen/genericOps.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,9 @@ var genericOps = []opData{
281281
// or *AutoSymbol (arg0=SP).
282282
{name: "Addr", argLength: 1, aux: "Sym", symEffect: "Addr"}, // Address of a variable. Arg0=SP or SB. Aux identifies the variable.
283283

284-
{name: "SP"}, // stack pointer
285-
{name: "SB", typ: "Uintptr"}, // static base pointer (a.k.a. globals pointer)
286-
{name: "Func", aux: "Sym", symEffect: "None"}, // entry address of a function
287-
{name: "Invalid"}, // unused value
284+
{name: "SP"}, // stack pointer
285+
{name: "SB", typ: "Uintptr"}, // static base pointer (a.k.a. globals pointer)
286+
{name: "Invalid"}, // unused value
288287

289288
// Memory operations
290289
{name: "Load", argLength: 2}, // Load from arg0. arg1=memory

src/cmd/compile/internal/ssa/opGen.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,6 @@ const (
17831783
OpAddr
17841784
OpSP
17851785
OpSB
1786-
OpFunc
17871786
OpLoad
17881787
OpStore
17891788
OpMove
@@ -21552,13 +21551,6 @@ var opcodeTable = [...]opInfo{
2155221551
argLen: 0,
2155321552
generic: true,
2155421553
},
21555-
{
21556-
name: "Func",
21557-
auxType: auxSym,
21558-
argLen: 0,
21559-
symEffect: SymNone,
21560-
generic: true,
21561-
},
2156221554
{
2156321555
name: "Load",
2156421556
argLen: 2,

0 commit comments

Comments
 (0)