projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7251a0
)
add a method for deleting dead jump tables.
author
Chris Lattner
<sabre@nondot.org>
Sat, 28 Oct 2006 18:12:00 +0000
(18:12 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 28 Oct 2006 18:12:00 +0000
(18:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31268
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineJumpTableInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineJumpTableInfo.h
b/include/llvm/CodeGen/MachineJumpTableInfo.h
index adf33488c164679e55b64d94d32a2e053c703230..6f6670788757fb7c91693a6c477b0e0175fa2815 100644
(file)
--- a/
include/llvm/CodeGen/MachineJumpTableInfo.h
+++ b/
include/llvm/CodeGen/MachineJumpTableInfo.h
@@
-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) {