ref: fa8dbc38f28246b78254ccb69ae2f43b9914e80b
parent: 53f14a7c00755ff7aea5e8115de6e9fd3fe1518f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Apr 20 00:31:40 EDT 2016
[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.
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -54,9 +54,10 @@
case SLOCAL:
return '$';
case SAUTO:
- case SREG:
case STMP:
return '%';
+ case SLABEL:
+ return '@';
default:
abort();
}