diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-10-28 18:10:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-10-28 18:10:06 +0000 |
| commit | 28bfe389d1b0d6176380ff52e1d5a3cddef1fb74 (patch) | |
| tree | f573a8a628bb6e1e5d556faf87a0b38268d3b5cb /llvm | |
| parent | a4a215740582bbd0083ff0a9b7f8cc0f33f3161d (diff) | |
| download | bcm5719-llvm-28bfe389d1b0d6176380ff52e1d5a3cddef1fb74.tar.gz bcm5719-llvm-28bfe389d1b0d6176380ff52e1d5a3cddef1fb74.zip | |
don't print dead jump tables
llvm-svn: 31266
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 9a740692b9b..bfd0e37924b 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp @@ -221,6 +221,9 @@ void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI, 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. |

