mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Revert "cmd/compile: cleanup nodpc and nodfp"
This reverts commit dcac984b97.
Reason for revert: broke LR architectures (arm64, ppc64, s390x)
Change-Id: I531d311c9053e81503c8c78d6cf044b318fc828b
Reviewed-on: https://go-review.googlesource.com/99695
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
parent
010579c237
commit
b55eedd173
9 changed files with 270 additions and 261 deletions
|
|
@ -466,19 +466,8 @@ func finishUniverse() {
|
|||
s1.Block = s.Block
|
||||
}
|
||||
|
||||
callerSP = newname(lookup(".sp"))
|
||||
callerSP.Type = types.Types[TUINTPTR]
|
||||
callerSP.SetClass(PPARAM)
|
||||
callerSP.Name.SetUsed(true)
|
||||
|
||||
callerPC = newname(lookup(".pc"))
|
||||
callerPC.Type = types.Types[TUINTPTR]
|
||||
callerPC.SetClass(PPARAM)
|
||||
callerPC.Name.SetUsed(true)
|
||||
nodfp = newname(lookup(".fp"))
|
||||
nodfp.Type = types.Types[TINT32]
|
||||
nodfp.SetClass(PPARAM)
|
||||
nodfp.Name.SetUsed(true)
|
||||
}
|
||||
|
||||
var (
|
||||
// Pseudo variables that represent the caller's SP and PC, respectively.
|
||||
callerSP *Node
|
||||
callerPC *Node
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue