summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SlotIndexes.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-10 23:56:02 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-10 23:56:02 +0000
commit01f98abe3ebaaa1640b16aac951ed85deaa97862 (patch)
tree1c5eae39174c8205a917d5e2cc91989e6c2962fe /include/llvm/CodeGen/SlotIndexes.h
parentb5f327b30f048b989c6f08d3bf84568d541b7644 (diff)
downloadllvm-01f98abe3ebaaa1640b16aac951ed85deaa97862.tar.gz
llvm-01f98abe3ebaaa1640b16aac951ed85deaa97862.tar.bz2
llvm-01f98abe3ebaaa1640b16aac951ed85deaa97862.tar.xz
Delete unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SlotIndexes.h')
-rw-r--r--include/llvm/CodeGen/SlotIndexes.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h
index 4b7721b996..d207923099 100644
--- a/include/llvm/CodeGen/SlotIndexes.h
+++ b/include/llvm/CodeGen/SlotIndexes.h
@@ -590,29 +590,6 @@ namespace llvm {
return resVal;
}
- /// Return a list of MBBs that can be reach via any branches or
- /// fall-throughs.
- bool findReachableMBBs(SlotIndex start, SlotIndex end,
- SmallVectorImpl<MachineBasicBlock*> &mbbs) const {
- std::vector<IdxMBBPair>::const_iterator itr =
- std::lower_bound(idx2MBBMap.begin(), idx2MBBMap.end(), start);
-
- bool resVal = false;
- while (itr != idx2MBBMap.end()) {
- if (itr->first > end)
- break;
- MachineBasicBlock *mbb = itr->second;
- if (getMBBEndIdx(mbb) > end)
- break;
- for (MachineBasicBlock::succ_iterator si = mbb->succ_begin(),
- se = mbb->succ_end(); si != se; ++si)
- mbbs.push_back(*si);
- resVal = true;
- ++itr;
- }
- return resVal;
- }
-
/// Returns the MBB covering the given range, or null if the range covers
/// more than one basic block.
MachineBasicBlock* getMBBCoveringRange(SlotIndex start, SlotIndex end) const {