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:
Chris Lattner 2009-06-20 19:34:47 +00:00
parent 7680e73341
commit 8cb65a5092
3 changed files with 0 additions and 20 deletions

View File

@ -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 << '$';

View File

@ -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>>";

View File

@ -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 ";