Rename {Function,Global}.Name -> LinkName

This commit is contained in:
Ayke van Laethem
2018-08-19 20:42:24 +02:00
parent 3146cc86d4
commit bce33bbf41
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ func (p *Program) GetGlobal(ssaGlobal *ssa.Global) *Global {
}
// Return the link name for this function.
func (f *Function) Name(blocking bool) string {
func (f *Function) LinkName(blocking bool) string {
suffix := ""
if blocking {
suffix = "$async"
@@ -157,7 +157,7 @@ func (f *Function) CName() string {
}
// Return the link name for this global.
func (g *Global) Name() string {
func (g *Global) LinkName() string {
if strings.HasPrefix(g.g.Name(), "_extern_") {
return g.g.Name()[len("_extern_"):]
} else {