• Jeremy Faller's avatar
    cmd/link: add notion of multiple compilation units per package · 78a37347
    Jeremy Faller authored
    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: default avatarAustin Clements <austin@google.com>
    Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
    78a37347
compilation_unit.go 932 Bytes