Commit 27eebbab authored by Matthew Dempsky's avatar Matthew Dempsky Committed by Brad Fitzpatrick

cmd/compile, runtime: remove throwreturn

Change-Id: If8d27cf1cd8d650ed0ba332448d3174d80b6b0ca
Reviewed-on: https://go-review.googlesource.com/29217
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 78c46581
This diff is collapsed.
...@@ -16,7 +16,6 @@ func newobject(typ *byte) *any ...@@ -16,7 +16,6 @@ func newobject(typ *byte) *any
func panicindex() func panicindex()
func panicslice() func panicslice()
func panicdivide() func panicdivide()
func throwreturn()
func throwinit() func throwinit()
func panicwrap(string, string, string) func panicwrap(string, string, string)
......
...@@ -404,8 +404,6 @@ var panicslice *Node ...@@ -404,8 +404,6 @@ var panicslice *Node
var panicdivide *Node var panicdivide *Node
var throwreturn *Node
var growslice *Node var growslice *Node
var writebarrierptr *Node var writebarrierptr *Node
......
...@@ -310,7 +310,6 @@ func compile(fn *Node) { ...@@ -310,7 +310,6 @@ func compile(fn *Node) {
Panicindex = Sysfunc("panicindex") Panicindex = Sysfunc("panicindex")
panicslice = Sysfunc("panicslice") panicslice = Sysfunc("panicslice")
panicdivide = Sysfunc("panicdivide") panicdivide = Sysfunc("panicdivide")
throwreturn = Sysfunc("throwreturn")
growslice = Sysfunc("growslice") growslice = Sysfunc("growslice")
writebarrierptr = Sysfunc("writebarrierptr") writebarrierptr = Sysfunc("writebarrierptr")
typedmemmove = Sysfunc("typedmemmove") typedmemmove = Sysfunc("typedmemmove")
......
...@@ -62,10 +62,6 @@ func panicmem() { ...@@ -62,10 +62,6 @@ func panicmem() {
panic(memoryError) panic(memoryError)
} }
func throwreturn() {
throw("no return at end of a typed function - compiler is broken")
}
func throwinit() { func throwinit() {
throw("recursive call during initialization - linker skew") throw("recursive call during initialization - linker skew")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment