From 41c0b9eb88fa0e161d7564539a8beb3f79247f44 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Thu, 18 Oct 2018 16:39:49 -0700 Subject: [PATCH] cmd/compile: remove compiling_wrappers It's no longer needed after removing safemode. Change-Id: I7581d77a86342e3b6d7c632839f5eb7a5c20902e Reviewed-on: https://go-review.googlesource.com/c/143397 Run-TryBot: Matthew Dempsky TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/cmd/compile/internal/gc/go.go | 2 -- src/cmd/compile/internal/gc/reflect.go | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/cmd/compile/internal/gc/go.go b/src/cmd/compile/internal/gc/go.go index ae1c257e0ed..cfd695097f8 100644 --- a/src/cmd/compile/internal/gc/go.go +++ b/src/cmd/compile/internal/gc/go.go @@ -208,8 +208,6 @@ var compiling_runtime bool // Compiling the standard library var compiling_std bool -var compiling_wrappers bool - var use_writebarrier bool var pure_go bool diff --git a/src/cmd/compile/internal/gc/reflect.go b/src/cmd/compile/internal/gc/reflect.go index 2dd81e30f57..42988059036 100644 --- a/src/cmd/compile/internal/gc/reflect.go +++ b/src/cmd/compile/internal/gc/reflect.go @@ -406,18 +406,14 @@ func methods(t *types.Type) []*Sig { if !sig.isym.Siggen() { sig.isym.SetSiggen(true) if !types.Identical(this, it) { - compiling_wrappers = true genwrapper(it, f, sig.isym) - compiling_wrappers = false } } if !sig.tsym.Siggen() { sig.tsym.SetSiggen(true) if !types.Identical(this, t) { - compiling_wrappers = true genwrapper(t, f, sig.tsym) - compiling_wrappers = false } } }