1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

add a method for deleting dead jump tables.

llvm-svn: 31268
This commit is contained in:
Chris Lattner 2006-10-28 18:12:00 +00:00
parent 8f46e97b96
commit fa7bf778e5

View File

@ -55,6 +55,12 @@ public:
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
/// the jump tables to branch to New instead.
bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New) {