commit 06406a58ad2731e634939b4abd2e5d1bf5905245
parent 599f8df9655f84d78e6383f546caf23c7dccae98
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
Date: Wed, 20 Apr 2016 04:31:40 +0200
[cc2-qbe] Add labels to sigil()
Labels were lost in the implementation of this function, and it
was accepting SREG types, which cannot happen in this target.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
@@ -54,9 +54,10 @@ sigil(Symbol *sym)
case SLOCAL:
return '$';
case SAUTO:
- case SREG:
case STMP:
return '%';
+ case SLABEL:
+ return '@';
default:
abort();
}