Add function to encode global identifier
This commit is contained in:
parent
6fd0d600e2
commit
f39edcca0c
|
@ -117,10 +117,14 @@ func EncodeRegisterName (name string) string {
|
|||
return "%" + EscapeIdent(name)
|
||||
}
|
||||
|
||||
func EncodeFunctionName (name string) string {
|
||||
func EncodeGlobalName (name string) string {
|
||||
return "@" + EscapeIdent(name)
|
||||
}
|
||||
|
||||
func EncodeFunctionName (name string) string {
|
||||
return EncodeGlobalName(name)
|
||||
}
|
||||
|
||||
func EncodeLabelName (name string) string {
|
||||
return EscapeIdent(name) + ":"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue