Wrap FunctionName in a newtype struct.

Function names display differently than normal strings since they need
quotes and escaping.

Move the FunctionName type into its own module.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-19 14:52:48 -07:00
parent 6fb566fa85
commit 388154e06b
7 changed files with 91 additions and 59 deletions

View File

@@ -29,7 +29,7 @@ ebb100(v20: i32):
vx200 = iadd v20, v1000
jump ebb100(v1000)
}
; sameln: function "use_value"() {
; sameln: function use_value() {
; nextln: ebb0(vx0: i32):
; nextln: v0 = iadd_imm vx0, 5
; nextln: v1 = iadd vx0, v0