commit | 04427c85cf58e1f7f3b724fef2fda6398b1793e4 | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Wed Jun 11 13:14:06 2014 -0400 |
committer | Alan Donovan <adonovan@google.com> | Wed Jun 11 13:14:06 2014 -0400 |
tree | 6bf64cc2ca11ea3410b87a1f0df335315ca3458b | |
parent | 74117bcfd8ba581052280e6718c3b70e6b9d1067 [diff] |
go/ssa: add Node interface: common parts of Value+Instruction, plus Operands/Referrers. Also: - extend Parent() to all Values and add to interface: (Builtin/Const/Global => nil; Function => Enclosing) - hide Function.Enclosing since it's now redundant wrt Parent() - make (*Function).String robust for synthetics without pkg object LGTM=gri R=gri CC=golang-codereviews, khr https://golang.org/cl/87580044