scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 669131252b1f35c13e32a47e22e84026ac69d1a8
parent bc901dae9adb6c246563a6647ae983087a93642f
Author: Roberto E. Vargas Caballero <roberto.vargas@igrid-td.com>
Date:   Mon,  4 Apr 2016 16:46:26 +0200

[cc2] Remove sigil function from qbe

This function is not going to be used because
we know in every case what is the sigil we have
to use.

Diffstat:
Mcc2/arch/qbe/code.c | 22----------------------
1 file changed, 0 insertions(+), 22 deletions(-)

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -6,28 +6,6 @@ #include "../../cc2.h" #include "../../../inc/sizes.h" -/* - * : is for user-defined Aggregate Types - * $ is for globals (represented by a pointer) - * % is for function-scope temporaries - * @ is for block labels - */ -static char -sigil(Symbol *sym) -{ - switch (sym->kind) { - case EXTRN: - case GLOB: - case PRIVAT: - case LOCAL: - return '$'; - case AUTO: - case REG: - return '%'; - default: - abort(); - } -} static void size2asm(Type *tp)