mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
remove dead code, the main codepath never has to deal
with MBB's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7680e73341
commit
8cb65a5092
@ -451,11 +451,6 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
O << '$';
|
||||
O << MO.getImm();
|
||||
return;
|
||||
case MachineOperand::MO_MachineBasicBlock:
|
||||
// FIXME: REMOVE
|
||||
assert(0 && "labels should only be used as pc-relative values");
|
||||
printBasicBlockLabel(MO.getMBB(), false, false, VerboseAsm);
|
||||
return;
|
||||
case MachineOperand::MO_JumpTableIndex: {
|
||||
bool isMemOp = Modifier && !strcmp(Modifier, "mem");
|
||||
if (!isMemOp) O << '$';
|
||||
|
@ -88,16 +88,6 @@ void X86ATTAsmPrinter::printOperand(const MCInst *MI, unsigned OpNo,
|
||||
O << '$';
|
||||
O << Op.getImm();
|
||||
return;
|
||||
} else if (Op.isMBBLabel()) {
|
||||
assert(0 && "labels should only be used as pc-relative values");
|
||||
// FIXME: Keep in sync with printBasicBlockLabel. printBasicBlockLabel
|
||||
// should eventually call into this code, not the other way around.
|
||||
|
||||
O << TAI->getPrivateGlobalPrefix() << "BB" << Op.getMBBLabelFunction()
|
||||
<< '_' << Op.getMBBLabelBlock();
|
||||
|
||||
// FIXME: with verbose asm print llvm bb name, add to operand.
|
||||
return;
|
||||
}
|
||||
|
||||
O << "<<UNKNOWN OPERAND KIND>>";
|
||||
|
@ -223,11 +223,6 @@ void X86IntelAsmPrinter::printOp(const MachineOperand &MO,
|
||||
case MachineOperand::MO_Immediate:
|
||||
O << MO.getImm();
|
||||
return;
|
||||
case MachineOperand::MO_MachineBasicBlock:
|
||||
// FIXME: REMOVE
|
||||
assert(0 && "labels should only be used as pc-relative values");
|
||||
printBasicBlockLabel(MO.getMBB());
|
||||
return;
|
||||
case MachineOperand::MO_JumpTableIndex: {
|
||||
bool isMemOp = Modifier && !strcmp(Modifier, "mem");
|
||||
if (!isMemOp) O << "OFFSET ";
|
||||
|
Loading…
x
Reference in New Issue
Block a user