aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/dwarf.go
diff options
context:
space:
mode:
authorJeremy Faller <jeremy@golang.org>2019-08-22 12:18:28 -0400
committerJeremy Faller <jeremy@golang.org>2019-09-25 17:35:25 +0000
commit21bf37b5a2052e5aaedbd17abeca7eb263cba706 (patch)
tree4efa309efee85079cf8065186869b57d1e3c7311 /src/cmd/internal/obj/dwarf.go
parentefb9739203fc0b66f5593c5edbe0bc0fd6062956 (diff)
downloadgo-21bf37b5a2052e5aaedbd17abeca7eb263cba706.tar.xz
cmd/compile: update object file format for DWARF file table
In CL 188317, we generate the debug_lines in the compiler, and created a new symbol to hold the line table. Here we modify the object file format to output the file table. Change-Id: Ibee192e80b86ff6af36467a0b1c26ee747dfee37 Reviewed-on: https://go-review.googlesource.com/c/go/+/191167 Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal/obj/dwarf.go')
-rw-r--r--src/cmd/internal/obj/dwarf.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/cmd/internal/obj/dwarf.go b/src/cmd/internal/obj/dwarf.go
index ebe69f8811..23c668c5a9 100644
--- a/src/cmd/internal/obj/dwarf.go
+++ b/src/cmd/internal/obj/dwarf.go
@@ -235,15 +235,3 @@ func putpclcdelta(linkctxt *Link, dctxt dwCtxt, s *LSym, deltaPC uint64, deltaLC
// Output the special opcode.
dctxt.AddUint8(s, uint8(opcode))
}
-
-// createDebugLinesFileTable creates a new symbol holding the list of files
-// in our package.
-func (ctxt *Link) createDebugLinesFileTable() {
- dctxt := dwCtxt{ctxt}
-
- fileLUT := ctxt.PosTable.DebugLinesFileTable()
- s := ctxt.dwarfFileTableSymbol()
- for _, file := range fileLUT {
- dctxt.AddString(s, file)
- }
-}