mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-28 06:58:19 +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) {
|
for (unsigned i = 0, e = JT.size(); i != e; ++i) {
|
||||||
const std::vector<MachineBasicBlock*> &JTBBs = JT[i].MBBs;
|
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
|
// 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.
|
// the number of relocations the assembler will generate for the jump table.
|
||||||
|
Loading…
Reference in New Issue
Block a user