• Keith Randall's avatar
    cmd/compile: hide init functions in tracebacks · eafe9a18
    Keith Randall authored
    Treat compiler-generated init functions as wrappers, so they will not
    be shown in tracebacks.
    
    The exception to this rule is that we'd like to show the line number
    of initializers for global variables in tracebacks. In order to
    preserve line numbers for those cases, separate out the code for those
    initializers into a separate function (which is not marked as
    autogenerated).
    
    This CL makes the go binary 0.2% bigger.
    
    Fixes #29919
    
    Change-Id: I0f1fbfc03d10d764ce3a8ddb48fb387ca8453386
    Reviewed-on: https://go-review.googlesource.com/c/159717
    Run-TryBot: Keith Randall <khr@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    eafe9a18
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...