Skip to content

Commit f3190cf

Browse files
committed
Actually return register syntax from RegAlloc.
1 parent d16bf96 commit f3190cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/QAST/Compiler.nqp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ class QAST::Compiler is HLL::Compiler {
2424

2525
method fresh_p() {
2626
$!cur_p := $!cur_p + 1;
27-
$!cur_p
27+
'$P' ~ $!cur_p
2828
}
2929
method fresh_s() {
3030
$!cur_s := $!cur_s + 1;
31-
$!cur_s
31+
'$S' ~ $!cur_s
3232
}
3333
method fresh_i() {
3434
$!cur_i := $!cur_i + 1;
35-
$!cur_i
35+
'$I' ~ $!cur_i
3636
}
3737
method fresh_n() {
3838
$!cur_n := $!cur_n + 1;
39-
$!cur_n
39+
'$N' ~ $!cur_n
4040
}
4141

4242
method cur_p() { $!cur_p }

0 commit comments

Comments
 (0)