aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/rewriteMIPS.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2018-10-28 11:22:08 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2018-10-28 18:46:36 +0000
commit3bab4373c7bcff8415da8f4560a3297d1c158e16 (patch)
treefa0d195139409880aacdec1024d8fd592d52faa3 /src/cmd/compile/internal/ssa/rewriteMIPS.go
parent15c45752935a13fcb9f8f9528ac062da3a9d6cdb (diff)
downloadgo-3bab4373c7bcff8415da8f4560a3297d1c158e16.tar.gz
go-3bab4373c7bcff8415da8f4560a3297d1c158e16.zip
cmd/compile: make fmt available in rewrite rules
During development and debugging, I often want to write noteRule(fmt.Sprintf(...)), and end up manually adding the import to the generated code. Let's just make it always available instead. Change-Id: I1e2d47c98ba056e1b5da42e35fb6ad26f1d9cc3d Reviewed-on: https://go-review.googlesource.com/c/145207 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Martin Möhrmann <moehrmann@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/rewriteMIPS.go')
-rw-r--r--src/cmd/compile/internal/ssa/rewriteMIPS.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/rewriteMIPS.go b/src/cmd/compile/internal/ssa/rewriteMIPS.go
index 231949644e..e513981852 100644
--- a/src/cmd/compile/internal/ssa/rewriteMIPS.go
+++ b/src/cmd/compile/internal/ssa/rewriteMIPS.go
@@ -3,11 +3,13 @@
package ssa
+import "fmt"
import "math"
import "cmd/internal/obj"
import "cmd/internal/objabi"
import "cmd/compile/internal/types"
+var _ = fmt.Println // in case not otherwise used
var _ = math.MinInt8 // in case not otherwise used
var _ = obj.ANOP // in case not otherwise used
var _ = objabi.GOROOT // in case not otherwise used