mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
Rename {Function,Global}.Name -> LinkName
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user