remove dead code, the main codepath never has to deal
authorChris Lattner <sabre@nondot.org>
Sat, 20 Jun 2009 19:34:47 +0000 (19:34 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 20 Jun 2009 19:34:47 +0000 (19:34 +0000)
with MBB's.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73830 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp

index 559af1bdc16408300ca63d995c0327c96c7e9470..025602f127dabce8072f9cb20e6fa95e0dd66b59 100644 (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 << '$';
index 64d523fb499693636dfac4b5db7e3c7f09b41b9b..d6545d6281f8b6723da66a9084d87d3650c7a9f5 100644 (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>>";
index 73cafce7f880ff38d22aa1a6b739686fb4a4c66e..ceae7bebc237139274185f7fa0c7fa72b9102581 100644 (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 ";