]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: cull unused ssa construction Error function
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 30 Mar 2017 18:16:23 +0000 (11:16 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 30 Mar 2017 20:45:01 +0000 (20:45 +0000)
The preceding passes have caught any errors
that could occur during SSA construction.

Updates #19250

Change-Id: I736edb2017da3f111fb9f74be12d437b5a24d2b4
Reviewed-on: https://go-review.googlesource.com/38971
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/ssa.go

index b5a6d455ad236a6b9d113a3c8bdcd2d859498c23..da4c0bb34a6eb8df9bf724ee33c64a74e6b24803 100644 (file)
@@ -373,10 +373,6 @@ func (s *state) peekPos() src.XPos {
        return s.line[len(s.line)-1]
 }
 
-func (s *state) Error(msg string, args ...interface{}) {
-       yyerrorl(s.peekPos(), msg, args...)
-}
-
 // newValue0 adds a new value with no arguments to the current block.
 func (s *state) newValue0(op ssa.Op, t ssa.Type) *ssa.Value {
        return s.curBlock.NewValue0(s.peekPos(), op, t)