From: Josh Bleecher Snyder Date: Sat, 4 Jul 2015 03:29:11 +0000 (-0700) Subject: [dev.ssa] cmd/compile/ssa: add Logf state helper X-Git-Tag: go1.7beta1~1623^2^2~412 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1edf4897df1000c240682ffa92fc4649c1c4bfb3;p=gostls13.git [dev.ssa] cmd/compile/ssa: add Logf state helper Change-Id: I4e4200b0fa847a1ff8a8b7d1e318bbc1c5e26b5b Reviewed-on: https://go-review.googlesource.com/11874 Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go index 1dba9b22a5..5e254c265b 100644 --- a/src/cmd/compile/internal/gc/ssa.go +++ b/src/cmd/compile/internal/gc/ssa.go @@ -156,6 +156,7 @@ type state struct { line []int32 } +func (s *state) Logf(msg string, args ...interface{}) { s.config.Logf(msg, args...) } func (s *state) Fatalf(msg string, args ...interface{}) { s.config.Fatalf(msg, args...) } func (s *state) Unimplementedf(msg string, args ...interface{}) { s.config.Unimplementedf(msg, args...) }