Changes in directory llvm/lib/CodeGen:

AsmPrinter.cpp updated: 1.113 -> 1.114
---
Log message:

don't print dead jump tables


---
Diffs of the changes:  (+3 -0)

 AsmPrinter.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.113 
llvm/lib/CodeGen/AsmPrinter.cpp:1.114
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.113       Tue Oct 24 15:32:14 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp     Sat Oct 28 13:10:06 2006
@@ -221,6 +221,9 @@
   
   for (unsigned i = 0, e = JT.size(); i != e; ++i) {
     const std::vector<MachineBasicBlock*> &JTBBs = JT[i].MBBs;
+    
+    // If this jump table was deleted, ignore it. 
+    if (JTBBs.empty()) continue;
 
     // For PIC codegen, if possible we want to use the SetDirective to reduce
     // the number of relocations the assembler will generate for the jump 
table.



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to