diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2017-03-07 10:57:55 -0800 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2017-03-07 19:23:25 +0000 |
| commit | 527f3518dac8554161fd0535ab2c35df507062ff (patch) | |
| tree | 3d6904c07d0dcb2a24a68030bf7eab6ff82e5612 /src/cmd/internal/dwarf | |
| parent | b1a4424a52687e5abca29cd795c5701b5639a52f (diff) | |
| download | go-527f3518dac8554161fd0535ab2c35df507062ff.tar.xz | |
cmd/compile/internal/gc: skip autotmp vars in gc again
Instead of skipping them based on string matching much later in the
compilation process, skip them up front using the proper API.
Passes toolstash-check.
Change-Id: Ibd4c0448a0701ba0de3235d4689ef300235fa1d9
Reviewed-on: https://go-review.googlesource.com/37930
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal/dwarf')
| -rw-r--r-- | src/cmd/internal/dwarf/dwarf.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cmd/internal/dwarf/dwarf.go b/src/cmd/internal/dwarf/dwarf.go index 3644146725..99cb2d53ce 100644 --- a/src/cmd/internal/dwarf/dwarf.go +++ b/src/cmd/internal/dwarf/dwarf.go @@ -7,10 +7,7 @@ // this package contains the shared code. package dwarf -import ( - "fmt" - "strings" -) +import "fmt" // InfoPrefix is the prefix for all the symbols containing DWARF info entries. const InfoPrefix = "go.info." @@ -576,9 +573,6 @@ func PutFunc(ctxt Context, s Sym, name string, external bool, startPC Sym, size putattr(ctxt, s, DW_ABRV_FUNCTION, DW_FORM_flag, DW_CLS_FLAG, ev, 0) names := make(map[string]bool) for _, v := range vars { - if strings.Contains(v.Name, ".autotmp_") { - continue - } var n string if names[v.Name] { n = fmt.Sprintf("%s#%d", v.Name, len(names)) |
