[hackers] [scc] [cc2] Remove sigil function from qbe || Roberto E. Vargas Caballero
commit 669131252b1f35c13e32a47e22e84026ac69d1a8
Author: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
AuthorDate: Mon Apr 4 16:46:26 2016 +0200
Commit: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
CommitDate: Mon Apr 4 16:48:03 2016 +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.
diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 0d2b5c4..f030a00 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -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
- * _AT_ 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)
Received on Mon Apr 04 2016 - 17:49:44 CEST
This archive was generated by hypermail 2.3.0
: Mon Apr 04 2016 - 18:00:20 CEST