aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/obj.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2015-08-17 00:18:31 -0700
committerDavid Chase <drchase@google.com>2015-08-17 15:01:55 +0000
commit270e2152c4645a72ac3263fcc92ce878e8035d71 (patch)
tree1a558e9ffb77e266c35215b01ce62f5b40c5e249 /src/cmd/internal/obj/obj.go
parentd4cc51d4118027464f61034179908abd0005fab6 (diff)
downloadgo-270e2152c4645a72ac3263fcc92ce878e8035d71.tar.xz
[dev.ssa] cmd/compile: fix dev.ssa build
Broken by CL 13472. Change-Id: Ib65331b291c8fab4238ca91e085779bb954d70e8 Reviewed-on: https://go-review.googlesource.com/13638 Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/internal/obj/obj.go')
-rw-r--r--src/cmd/internal/obj/obj.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/internal/obj/obj.go b/src/cmd/internal/obj/obj.go
index 6229bbb288..937e3b9812 100644
--- a/src/cmd/internal/obj/obj.go
+++ b/src/cmd/internal/obj/obj.go
@@ -229,6 +229,10 @@ func (h *LineHist) LineString(lineno int) string {
text := fmt.Sprintf("%s:%d", filename, stk.fileLineAt(lineno))
if stk.Directive && stk.Parent != nil {
stk = stk.Parent
+ filename = stk.File
+ if h.PrintFilenameOnly {
+ filename = filepath.Base(filename)
+ }
text += fmt.Sprintf("[%s:%d]", filename, stk.fileLineAt(lineno))
}
const showFullStack = false // was used by old C compilers