]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: report better line numbers for Unimplemented/Fatal
authorKeith Randall <khr@golang.org>
Wed, 13 Jan 2016 19:14:57 +0000 (11:14 -0800)
committerKeith Randall <khr@golang.org>
Tue, 19 Jan 2016 15:43:32 +0000 (15:43 +0000)
commitda8af47710818617d765a25f0ff487fe8d633250
tree4cef447d8f330131056d22e54b1e353afde84a33
parent594c3aa063befecb6bd51a191781e44d1cd1b566
[dev.ssa] cmd/compile: report better line numbers for Unimplemented/Fatal

If a failure occurs in SSA processing, we always report the
last line of the function we're compiling.  Modify the callbacks
from SSA to the GC compiler so we can pass a line number back
and use it in Fatalf.

Change-Id: Ifbfad50d5e167e997e0a96f0775bcc369f5c397e
Reviewed-on: https://go-review.googlesource.com/18599
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/export_test.go
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/html.go
src/cmd/compile/internal/ssa/value.go