]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add notion of multiple compilation units per package
authorJeremy Faller <jeremy@golang.org>
Fri, 9 Aug 2019 15:36:03 +0000 (11:36 -0400)
committerJeremy Faller <jeremy@golang.org>
Tue, 24 Sep 2019 21:33:10 +0000 (21:33 +0000)
commit78a37347143bd03026a6c6860a550b1638ce5314
treeefa9f82b307a4b184af7d426c7d7fd49b11ee618
parentd979ac33a210d548971eac3a0ba64449dcce886f
cmd/link: add notion of multiple compilation units per package

As we move the debug_line generation into the compiler, we need to
upgrade the notion of compilationUnit to not just be on a per package
basis.  That won't be the case as it will be impossible for all
compilationUnits to have the same set of files names used to build the
debug_lines table. (For example, assembled files in a package don't know
about any files but themselves, so the debug_lines table could only
reference themseves. As such, we need to break the 1:1 relationship
between compUnit and package.)

Change-Id: I2e517bb6c01de0115bbf777af828a2fe59c09ce8
Reviewed-on: https://go-review.googlesource.com/c/go/+/189618
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/deadcode.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/objfile/objfile.go
src/cmd/link/internal/sym/compilation_unit.go [new file with mode: 0644]
src/cmd/link/internal/sym/library.go
src/cmd/link/internal/sym/symbol.go