commit 06406a58ad2731e634939b4abd2e5d1bf5905245
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
AuthorDate: Wed Apr 20 04:31:40 2016 +0200
Commit: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
CommitDate: Wed Apr 20 04:40:21 2016 +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.
diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index fe9c762..1683d4f 100644
--- 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();
}