mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
move ARMCondCodeToString to ARMAsmPrinter.cpp
remove unused variables from lowerCall git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f67a99260
commit
e931a37a4e
@ -51,27 +51,6 @@ namespace llvm {
|
||||
};
|
||||
}
|
||||
|
||||
static const char *ARMCondCodeToString(ARMCC::CondCodes CC) {
|
||||
switch (CC) {
|
||||
default: assert(0 && "Unknown condition code");
|
||||
case ARMCC::EQ: return "eq";
|
||||
case ARMCC::NE: return "ne";
|
||||
case ARMCC::CS: return "cs";
|
||||
case ARMCC::CC: return "cc";
|
||||
case ARMCC::MI: return "mi";
|
||||
case ARMCC::PL: return "pl";
|
||||
case ARMCC::VS: return "vs";
|
||||
case ARMCC::VC: return "vc";
|
||||
case ARMCC::HI: return "hi";
|
||||
case ARMCC::LS: return "ls";
|
||||
case ARMCC::GE: return "ge";
|
||||
case ARMCC::LT: return "lt";
|
||||
case ARMCC::GT: return "gt";
|
||||
case ARMCC::LE: return "le";
|
||||
case ARMCC::AL: return "al";
|
||||
}
|
||||
}
|
||||
|
||||
class FunctionPass;
|
||||
class TargetMachine;
|
||||
|
||||
|
@ -38,6 +38,27 @@ using namespace llvm;
|
||||
namespace {
|
||||
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
|
||||
|
||||
static const char *ARMCondCodeToString(ARMCC::CondCodes CC) {
|
||||
switch (CC) {
|
||||
default: assert(0 && "Unknown condition code");
|
||||
case ARMCC::EQ: return "eq";
|
||||
case ARMCC::NE: return "ne";
|
||||
case ARMCC::CS: return "cs";
|
||||
case ARMCC::CC: return "cc";
|
||||
case ARMCC::MI: return "mi";
|
||||
case ARMCC::PL: return "pl";
|
||||
case ARMCC::VS: return "vs";
|
||||
case ARMCC::VC: return "vc";
|
||||
case ARMCC::HI: return "hi";
|
||||
case ARMCC::LS: return "ls";
|
||||
case ARMCC::GE: return "ge";
|
||||
case ARMCC::LT: return "lt";
|
||||
case ARMCC::GT: return "gt";
|
||||
case ARMCC::LE: return "le";
|
||||
case ARMCC::AL: return "al";
|
||||
}
|
||||
}
|
||||
|
||||
struct VISIBILITY_HIDDEN ARMAsmPrinter : public AsmPrinter {
|
||||
ARMAsmPrinter(std::ostream &O, TargetMachine &TM, const TargetAsmInfo *T)
|
||||
: AsmPrinter(O, TM, T) {
|
||||
|
@ -310,8 +310,6 @@ static SDOperand LowerCALL(SDOperand Op, SelectionDAG &DAG) {
|
||||
assert((CallConv == CallingConv::C ||
|
||||
CallConv == CallingConv::Fast)
|
||||
&& "unknown calling convention");
|
||||
bool isVarArg = cast<ConstantSDNode>(Op.getOperand(2))->getValue() != 0;
|
||||
bool isTailCall = cast<ConstantSDNode>(Op.getOperand(3))->getValue() != 0;
|
||||
SDOperand Callee = Op.getOperand(4);
|
||||
unsigned NumOps = (Op.getNumOperands() - 5) / 2;
|
||||
SDOperand StackPtr = DAG.getRegister(ARM::R13, MVT::i32);
|
||||
|
Loading…
x
Reference in New Issue
Block a user