remove old unused code

Conflicts:
	include/avian/codegen/lir.h
This commit is contained in:
Joshua Warner 2014-03-16 19:07:19 -06:00
parent f52ebdc323
commit c37b13301a
2 changed files with 0 additions and 58 deletions

View File

@ -163,29 +163,6 @@ class Memory: public Operand {
unsigned scale;
};
class Instr {
public:
enum Opcode {
#define LIR_OP_0(x) OP_##x,
#define LIR_OP_1(x) OP_##x,
#define LIR_OP_2(x) OP_##x,
#define LIR_OP_3(x) OP_##x,
#include "lir-ops.inc.cpp"
#undef LIR_OP_0
#undef LIR_OP_1
#undef LIR_OP_2
#undef LIR_OP_3
};
static const char* opcodeName(Opcode op);
static Opcode opcodeFromNullary(Operation op);
static Opcode opcodeFromUnary(UnaryOperation op);
static Opcode opcodeFromBinary(BinaryOperation op);
static Opcode opcodeFromTernary(TernaryOperation op);
};
} // namespace lir
} // namespace codegen
} // namespace avian

View File

@ -1,35 +0,0 @@
/* Copyright (c) 2008-2013, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See license.txt for
details. */
#include "lir.h"
namespace {
const char* lirOpcodeNames[] = {
#define LIR_OP_0(x) #x
#define LIR_OP_1(x) #x
#define LIR_OP_2(x) #x
#define LIR_OP_3(x) #x
#include "lir-ops.inc.cpp"
#undef LIR_OP_0
#undef LIR_OP_1
#undef LIR_OP_2
#undef LIR_OP_3
};
}
namespace vm {
const char* LirInstr::opcodeName(Opcode op) {
return lirOpcodeNames[op];
}
}