mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
eliminate extra space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
94ac0343cc
commit
481d15a122
@ -295,7 +295,7 @@ static void ReplaceFPIntrinsicWithCall(CallInst *CI, const char *Fname,
|
||||
const char *Dname,
|
||||
const char *LDname) {
|
||||
switch (CI->getOperand(1)->getType()->getTypeID()) {
|
||||
default: LLVM_UNREACHABLE( "Invalid type in intrinsic");
|
||||
default: LLVM_UNREACHABLE("Invalid type in intrinsic");
|
||||
case Type::FloatTyID:
|
||||
ReplaceCallWith(Fname, CI, CI->op_begin() + 1, CI->op_end(),
|
||||
Type::FloatTy);
|
||||
|
@ -153,7 +153,7 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
EmitAlignment(MF.getAlignment(), F);
|
||||
switch (F->getLinkage()) {
|
||||
default: LLVM_UNREACHABLE( "Unknown linkage type!");
|
||||
default: LLVM_UNREACHABLE("Unknown linkage type!");
|
||||
case Function::InternalLinkage: // Symbols default to internal.
|
||||
case Function::PrivateLinkage:
|
||||
break;
|
||||
|
@ -434,7 +434,7 @@ LinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF)
|
||||
EmitAlignment(MF.getAlignment(), F);
|
||||
|
||||
switch (F->getLinkage()) {
|
||||
default: LLVM_UNREACHABLE( "Unknown linkage type!");
|
||||
default: LLVM_UNREACHABLE("Unknown linkage type!");
|
||||
case Function::PrivateLinkage:
|
||||
case Function::InternalLinkage: // Symbols default to internal.
|
||||
break;
|
||||
|
@ -875,9 +875,8 @@ LowerConstantPool(SDValue Op, SelectionDAG &DAG, const SPUSubtarget *ST) {
|
||||
}
|
||||
}
|
||||
|
||||
LLVM_UNREACHABLE(
|
||||
"LowerConstantPool: Relocation model other than static"
|
||||
" not supported.");
|
||||
LLVM_UNREACHABLE("LowerConstantPool: Relocation model other than static"
|
||||
" not supported.");
|
||||
return SDValue();
|
||||
}
|
||||
|
||||
@ -907,8 +906,8 @@ LowerJumpTable(SDValue Op, SelectionDAG &DAG, const SPUSubtarget *ST) {
|
||||
}
|
||||
}
|
||||
|
||||
LLVM_UNREACHABLE(
|
||||
"LowerJumpTable: Relocation model other than static not supported.");
|
||||
LLVM_UNREACHABLE("LowerJumpTable: Relocation model other than static"
|
||||
" not supported.");
|
||||
return SDValue();
|
||||
}
|
||||
|
||||
@ -1836,7 +1835,7 @@ static SDValue LowerSCALAR_TO_VECTOR(SDValue Op, SelectionDAG &DAG) {
|
||||
// Create a constant vector:
|
||||
switch (Op.getValueType().getSimpleVT()) {
|
||||
default: LLVM_UNREACHABLE("Unexpected constant value type in "
|
||||
"LowerSCALAR_TO_VECTOR");
|
||||
"LowerSCALAR_TO_VECTOR");
|
||||
case MVT::v16i8: n_copies = 16; VT = MVT::i8; break;
|
||||
case MVT::v8i16: n_copies = 8; VT = MVT::i16; break;
|
||||
case MVT::v4i32: n_copies = 4; VT = MVT::i32; break;
|
||||
|
@ -113,7 +113,8 @@ void IA64InstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
|
||||
.addFrameIndex(FrameIdx)
|
||||
.addReg(IA64::r2);
|
||||
} else
|
||||
LLVM_UNREACHABLE("sorry, I don't know how to store this sort of reg in the stack");
|
||||
LLVM_UNREACHABLE("sorry, I don't know how to store this sort of reg"
|
||||
"in the stack");
|
||||
}
|
||||
|
||||
void IA64InstrInfo::storeRegToAddr(MachineFunction &MF, unsigned SrcReg,
|
||||
@ -163,8 +164,8 @@ void IA64InstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
|
||||
.addReg(IA64::r2)
|
||||
.addReg(IA64::r0);
|
||||
} else {
|
||||
LLVM_UNREACHABLE(
|
||||
"sorry, I don't know how to load this sort of reg from the stack");
|
||||
LLVM_UNREACHABLE("sorry, I don't know how to load this sort of reg"
|
||||
"from the stack");
|
||||
}
|
||||
}
|
||||
|
||||
@ -180,8 +181,7 @@ void IA64InstrInfo::loadRegFromAddr(MachineFunction &MF, unsigned DestReg,
|
||||
} else if (RC == IA64::PRRegisterClass) {
|
||||
Opc = IA64::LD1;
|
||||
} else {
|
||||
LLVM_UNREACHABLE(
|
||||
"sorry, I don't know how to load this sort of reg");
|
||||
LLVM_UNREACHABLE("sorry, I don't know how to load this sort of reg");
|
||||
}
|
||||
|
||||
DebugLoc DL = DebugLoc::getUnknownLoc();
|
||||
|
@ -216,7 +216,7 @@ emitCurrentABIString(void)
|
||||
default: break;
|
||||
}
|
||||
|
||||
LLVM_UNREACHABLE( "Unknown Mips ABI");
|
||||
LLVM_UNREACHABLE("Unknown Mips ABI");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -571,7 +571,7 @@ bool PPCLinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
SwitchToSection(TAI->SectionForGlobal(F));
|
||||
|
||||
switch (F->getLinkage()) {
|
||||
default: LLVM_UNREACHABLE( "Unknown linkage type!");
|
||||
default: LLVM_UNREACHABLE("Unknown linkage type!");
|
||||
case Function::PrivateLinkage:
|
||||
case Function::InternalLinkage: // Symbols default to internal.
|
||||
break;
|
||||
@ -748,7 +748,7 @@ bool PPCDarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
SwitchToSection(TAI->SectionForGlobal(F));
|
||||
|
||||
switch (F->getLinkage()) {
|
||||
default: LLVM_UNREACHABLE( "Unknown linkage type!");
|
||||
default: LLVM_UNREACHABLE("Unknown linkage type!");
|
||||
case Function::PrivateLinkage:
|
||||
case Function::InternalLinkage: // Symbols default to internal.
|
||||
break;
|
||||
|
@ -28,7 +28,7 @@ using namespace llvm;
|
||||
|
||||
void X86ATTAsmPrinter::printSSECC(const MCInst *MI, unsigned Op) {
|
||||
switch (MI->getOperand(Op).getImm()) {
|
||||
default: LLVM_UNREACHABLE( "Invalid ssecc argument!");
|
||||
default: LLVM_UNREACHABLE("Invalid ssecc argument!");
|
||||
case 0: O << "eq"; break;
|
||||
case 1: O << "lt"; break;
|
||||
case 2: O << "le"; break;
|
||||
@ -42,8 +42,8 @@ void X86ATTAsmPrinter::printSSECC(const MCInst *MI, unsigned Op) {
|
||||
|
||||
|
||||
void X86ATTAsmPrinter::printPICLabel(const MCInst *MI, unsigned Op) {
|
||||
LLVM_UNREACHABLE(
|
||||
"This is only used for MOVPC32r, should lower before asm printing!");
|
||||
LLVM_UNREACHABLE("This is only used for MOVPC32r,"
|
||||
"should lower before asm printing!");
|
||||
}
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ void X86ATTAsmPrinter::print_pcrel_imm(const MCInst *MI, unsigned OpNo) {
|
||||
O << TAI->getPrivateGlobalPrefix() << "BB" << Op.getMBBLabelFunction()
|
||||
<< '_' << Op.getMBBLabelBlock();
|
||||
else
|
||||
LLVM_UNREACHABLE( "Unknown pcrel immediate operand");
|
||||
LLVM_UNREACHABLE("Unknown pcrel immediate operand");
|
||||
}
|
||||
|
||||
|
||||
|
@ -115,7 +115,7 @@ void X86IntelAsmPrinter::decorateName(std::string &Name,
|
||||
|
||||
break;
|
||||
default:
|
||||
LLVM_UNREACHABLE( "Unsupported DecorationStyle");
|
||||
LLVM_UNREACHABLE("Unsupported DecorationStyle");
|
||||
}
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ bool X86IntelAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
SwitchToTextSection("_text", F);
|
||||
switch (F->getLinkage()) {
|
||||
default: LLVM_UNREACHABLE( "Unsupported linkage type!");
|
||||
default: LLVM_UNREACHABLE("Unsupported linkage type!");
|
||||
case Function::PrivateLinkage:
|
||||
case Function::InternalLinkage:
|
||||
EmitAlignment(FnAlign);
|
||||
@ -267,7 +267,7 @@ void X86IntelAsmPrinter::printOp(const MachineOperand &MO,
|
||||
void X86IntelAsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo){
|
||||
const MachineOperand &MO = MI->getOperand(OpNo);
|
||||
switch (MO.getType()) {
|
||||
default: LLVM_UNREACHABLE( "Unknown pcrel immediate operand");
|
||||
default: LLVM_UNREACHABLE("Unknown pcrel immediate operand");
|
||||
case MachineOperand::MO_Immediate:
|
||||
O << MO.getImm();
|
||||
return;
|
||||
@ -519,7 +519,7 @@ bool X86IntelAsmPrinter::doFinalization(Module &M) {
|
||||
SwitchToSection(TAI->getDataSection());
|
||||
break;
|
||||
default:
|
||||
LLVM_UNREACHABLE( "Unknown linkage type!");
|
||||
LLVM_UNREACHABLE("Unknown linkage type!");
|
||||
}
|
||||
|
||||
if (!bCustomSegment)
|
||||
|
Loading…
x
Reference in New Issue
Block a user