From 52ce29de2b147d88b1b11d2938725af30522b7ec Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Tue, 23 Mar 2010 17:15:19 +0000 Subject: Merge 98977 from mainline. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_27@99292 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineFunction.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/CodeGen/MachineFunction.cpp') 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 &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, -- cgit v1.2.3-18-g5258