]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove function-name-based debuglive tweaks
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 21 Mar 2017 16:57:47 +0000 (09:57 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 21 Mar 2017 19:36:14 +0000 (19:36 +0000)
It's easier to grep output than recompile the compiler anyway.

For concurrent compilation.

Updates #15756

Change-Id: I151cb5dc77056469cd9019d516f86454e931a197
Reviewed-on: https://go-review.googlesource.com/38424
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/plive.go

index 548f1ea6c62ce9a23c247d83c3f5e5a1724030ed..bd54e6a34ad5b2b6e3777ae470fe01e64f5a99fe 100644 (file)
@@ -1109,15 +1109,6 @@ func livenessemit(lv *Liveness, argssym, livesym *Sym) {
 // structure read by the garbage collector.
 // Returns a map from GC safe points to their corresponding stack map index.
 func liveness(e *ssafn, f *ssa.Func, argssym, livesym *Sym) map[*ssa.Value]int {
-       // Change name to dump debugging information only for a specific function.
-       debugdelta := 0
-
-       if e.curfn.Func.Nname.Sym.Name == "!" {
-               debugdelta = 2
-       }
-
-       debuglive += debugdelta
-
        // Construct the global liveness state.
        vars := getvariables(e.curfn)
        lv := newliveness(e.curfn, f, vars, e.stkptrsize)
@@ -1133,8 +1124,5 @@ func liveness(e *ssafn, f *ssa.Func, argssym, livesym *Sym) map[*ssa.Value]int {
 
        // Emit the live pointer map data structures
        livenessemit(lv, argssym, livesym)
-
-       debuglive -= debugdelta
-
        return lv.stackMapIndex
 }