aboutsummaryrefslogtreecommitdiff
path: root/mips.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-05 06:30:25 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-05 06:30:25 +0800
commitb10940f3570f7faad91b165df6b520a308a3b070 (patch)
tree6e8d1b362f739dc3c07c174c410025bed18b79a4 /mips.c
parent234bad3c4713b9795b9ec21b278fca78fcf65a1c (diff)
...
Diffstat (limited to 'mips.c')
-rw-r--r--mips.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mips.c b/mips.c
index 3c5179d..2ca88e6 100644
--- a/mips.c
+++ b/mips.c
@@ -91,7 +91,6 @@ void mips_store(int reg, COpr_t opr) {
CVar_t var = opr->spill->info.var;
CType_t type = opr->type;
const char *l = type->type == CCHAR ? "sb" : "sw";
- /* TODO: struct */
if (var->loc > 0)
printf("\t%s $%d, _%s\n", l, reg, var->name);
else if (opr->reg == -1)
@@ -304,7 +303,6 @@ void mips_generate(void) {
break;
case MOVE:
{
- /* TODO: struct */
int rs;
int rd = i->dest->reg;
CType_t type = i->dest->type;