From c37b13301abb42a57366fc9e09e7288a99b167fd Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Sun, 16 Mar 2014 19:07:19 -0600 Subject: [PATCH] remove old unused code Conflicts: include/avian/codegen/lir.h --- include/avian/codegen/lir.h | 23 ----------------------- src/codegen/lir.cpp | 35 ----------------------------------- 2 files changed, 58 deletions(-) delete mode 100644 src/codegen/lir.cpp diff --git a/include/avian/codegen/lir.h b/include/avian/codegen/lir.h index bb493cc387..6d0857b07a 100644 --- a/include/avian/codegen/lir.h +++ b/include/avian/codegen/lir.h @@ -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 diff --git a/src/codegen/lir.cpp b/src/codegen/lir.cpp deleted file mode 100644 index 56dd5807ed..0000000000 --- a/src/codegen/lir.cpp +++ /dev/null @@ -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]; -} - -} \ No newline at end of file