Minor jump table cleanup.
authorJim Grosbach <grosbach@apple.com>
Mon, 25 Jan 2010 23:50:13 +0000 (23:50 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 25 Jan 2010 23:50:13 +0000 (23:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94475 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

index 1b2b8abc5770a7f0039d91fb0b94491bad25e4d4..63aa7ce7eac7d36a893d0e43ae25a6d57b103ddc 100644 (file)
@@ -950,8 +950,8 @@ void ARMAsmPrinter::printJTBlockOperand(const MachineInstr *MI, int OpNum) {
 
     if (UseSet && isNew) {
       O << MAI->getSetDirective() << ' '
-        << *GetARMSetPICJumpTableLabel2(JTI, MO2.getImm(), MBB) << '-'
-        << *JTISymbol << '\n';
+        << *GetARMSetPICJumpTableLabel2(JTI, MO2.getImm(), MBB) << ','
+        << *GetMBBSymbol(MBB->getNumber()) << '-' << *JTISymbol << '\n';
     }
 
     O << JTEntryDirective << ' ';