diff options
author | Joel Sing <joel@sing.id.au> | 2020-04-16 15:33:53 +1000 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2020-04-16 15:31:20 +0000 |
commit | 4eaf855155acb2da69adbab7728c1a59b9315d41 (patch) | |
tree | 6e5ea821a812d487465b7449f3e94eb221467f57 /src/runtime/signal_riscv64.go | |
parent | 2a029b3f26169be7c89cb2cdcc3db4b5d097a8b8 (diff) | |
download | go-4eaf855155acb2da69adbab7728c1a59b9315d41.tar.gz go-4eaf855155acb2da69adbab7728c1a59b9315d41.zip |
runtime: clean up now unused pushCallSupported
All platforms now support pushCall, hence remove the now unnecessary
pushCallSupported flag/guard.
Change-Id: I99e4be73839da68a742f3c239bae9ce2f8764624
Reviewed-on: https://go-review.googlesource.com/c/go/+/228497
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/signal_riscv64.go')
-rw-r--r-- | src/runtime/signal_riscv64.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/signal_riscv64.go b/src/runtime/signal_riscv64.go index 7da69b287b..e2edaf3735 100644 --- a/src/runtime/signal_riscv64.go +++ b/src/runtime/signal_riscv64.go @@ -78,8 +78,6 @@ func (c *sigctxt) preparePanic(sig uint32, gp *g) { c.set_pc(uint64(funcPC(sigpanic))) } -const pushCallSupported = true - func (c *sigctxt) pushCall(targetPC uintptr) { // Push the LR to stack, as we'll clobber it in order to // push the call. The function being pushed is responsible |