aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/writer.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/noder/writer.go')
-rw-r--r--src/cmd/compile/internal/noder/writer.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/noder/writer.go b/src/cmd/compile/internal/noder/writer.go
index d971bd0d16..a33b24e50c 100644
--- a/src/cmd/compile/internal/noder/writer.go
+++ b/src/cmd/compile/internal/noder/writer.go
@@ -189,11 +189,7 @@ func (pw *pkgWriter) posBaseIdx(b *syntax.PosBase) int {
w := pw.newWriter(relocPosBase, syncPosBase)
w.p.posBasesIdx[b] = w.idx
- // TODO(mdempsky): What exactly does "fileh" do anyway? Is writing
- // out both of these strings really the right thing to do here?
- fn := b.Filename()
- w.string(fn)
- w.string(fileh(fn))
+ w.string(trimFilename(b))
if !w.bool(b.IsFileBase()) {
w.pos(b)