mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
add a method for deleting dead jump tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -55,6 +55,12 @@ public:
|
|||||||
return JumpTables;
|
return JumpTables;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// RemoveJumpTable - Mark the specific index as being dead. This will cause
|
||||||
|
/// it to not be emitted.
|
||||||
|
void RemoveJumpTable(unsigned Idx) {
|
||||||
|
JumpTables[Idx].MBBs.clear();
|
||||||
|
}
|
||||||
|
|
||||||
/// ReplaceMBBInJumpTables - If Old is the target of any jump tables, update
|
/// ReplaceMBBInJumpTables - If Old is the target of any jump tables, update
|
||||||
/// the jump tables to branch to New instead.
|
/// the jump tables to branch to New instead.
|
||||||
bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New) {
|
bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New) {
|
||||||
|
Reference in New Issue
Block a user