mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/ssa: use obj.LSym instead of gc.Sym
Gc's Sym type represents a package-qualified identifier, which is a
frontend concept and doesn't belong in SSA. Bonus: we can replace some
interface{} types with *obj.LSym.
Passes toolstash -cmp.
Change-Id: I456eb9957207d80f99f6eb9b8eab4a1f3263e9ed
Reviewed-on: https://go-review.googlesource.com/36415
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
c2bc727f94
commit
87c475c227
12 changed files with 39 additions and 43 deletions
|
|
@ -129,7 +129,7 @@ type Frontend interface {
|
|||
|
||||
// Syslook returns a symbol of the runtime function/variable with the
|
||||
// given name.
|
||||
Syslook(string) interface{} // returns *gc.Sym
|
||||
Syslook(string) *obj.LSym
|
||||
}
|
||||
|
||||
// interface used to hold *gc.Node. We'd use *gc.Node directly but
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue