diff options
author | Tanya Lattner <tonic@nondot.org> | 2010-03-23 17:15:19 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2010-03-23 17:15:19 +0000 |
commit | 52ce29de2b147d88b1b11d2938725af30522b7ec (patch) | |
tree | bbe9be4e92877c0899d88bff86d1d82128fed6ae /lib/CodeGen/MachineFunction.cpp | |
parent | 0afc8f4e10850ba5b0298d86269d3d4c34dda8ec (diff) |
Merge 98977 from mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_27@99292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index ccbb2ddfea..33d8400043 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -603,17 +603,6 @@ unsigned MachineJumpTableInfo::createJumpTableIndex( return JumpTables.size()-1; } -/// getJumpTableIndex - Return the index for an existing jump table entry in -/// the jump table info. -unsigned MachineJumpTableInfo::getJumpTableIndex( - const std::vector<MachineBasicBlock*> &DestBBs) { - for (unsigned i = 0, e = JumpTables.size(); i != e; ++i) - if (JumpTables[i].MBBs == DestBBs) - return i; - assert(false && "getJumpTableIndex failed to find matching table"); - return ~0; -} - /// ReplaceMBBInJumpTables - If Old is the target of any jump tables, update /// the jump tables to branch to New instead. bool MachineJumpTableInfo::ReplaceMBBInJumpTables(MachineBasicBlock *Old, |