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:
parent
8f46e97b96
commit
fa7bf778e5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user