mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
don't print dead jump tables
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5bd0c00b80
commit
0737188220
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user