Changes in directory llvm/include/llvm/CodeGen:

MachineJumpTableInfo.h updated: 1.5 -> 1.6
---
Log message:

add a method for deleting dead jump tables.


---
Diffs of the changes:  (+6 -0)

 MachineJumpTableInfo.h |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
diff -u llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.5 
llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.6
--- llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.5        Sat Oct 28 
13:00:05 2006
+++ llvm/include/llvm/CodeGen/MachineJumpTableInfo.h    Sat Oct 28 13:12:00 2006
@@ -55,6 +55,12 @@
     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) {



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to