diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-11-14 20:09:13 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-11-14 20:09:13 +0000 |
commit | 68bb60f6a4e0902769f72d1badda4e37cd873ffb (patch) | |
tree | c3f54c9fc7f33dbfe183f67751cb959cf8d83d78 /include/llvm/CodeGen | |
parent | 1b226abcd97598b40b8b801593b168dcd201cdde (diff) | |
download | external_llvm-68bb60f6a4e0902769f72d1badda4e37cd873ffb.zip external_llvm-68bb60f6a4e0902769f72d1badda4e37cd873ffb.tar.gz external_llvm-68bb60f6a4e0902769f72d1badda4e37cd873ffb.tar.bz2 |
Add function to replace a destination MBB in a single jump table
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineJumpTableInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineJumpTableInfo.h b/include/llvm/CodeGen/MachineJumpTableInfo.h index 3ff2f2e..57c65c8 100644 --- a/include/llvm/CodeGen/MachineJumpTableInfo.h +++ b/include/llvm/CodeGen/MachineJumpTableInfo.h @@ -69,6 +69,11 @@ public: /// the jump tables to branch to New instead. bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New); + /// ReplaceMBBInJumpTable - If Old is a target of the jump tables, update + /// the jump table to branch to New instead. + bool ReplaceMBBInJumpTable(unsigned Idx, MachineBasicBlock *Old, + MachineBasicBlock *New); + /// getEntrySize - Returns the size of an individual field in a jump table. /// unsigned getEntrySize() const { return EntrySize; } |