mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
remove old unused code
Conflicts: include/avian/codegen/lir.h
This commit is contained in:
parent
f52ebdc323
commit
c37b13301a
@ -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
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user