]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: refactor around HTMLWriter removing logger in favor of Func
authorBradford Lamson-Scribner <brad.lamson@gmail.com>
Sun, 5 Apr 2020 18:44:02 +0000 (12:44 -0600)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 5 Apr 2020 20:54:32 +0000 (20:54 +0000)
commit6736b2fdb22a8b83c4e29d7f7d3f11080a8af328
tree28d56659ab6e2149d8b4419d5ec7897b34c77255
parent656f27ebf86e415c59de421643a35c98238b0ff5
cmd/compile: refactor around HTMLWriter removing logger in favor of Func

Replace HTMLWriter's Logger field with a *Func. Implement Fatalf method
for HTMLWriter which gets the Frontend() from the Func and calls down
into it's Fatalf method, passing the msg and args along. Replace
remaining calls to the old Logger with calls to logging methods on
the Func.

Change-Id: I966342ef9997396f3416fb152fa52d60080ebecb
Reviewed-on: https://go-review.googlesource.com/c/go/+/227277
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/html.go