mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
Delete unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118743 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5f327b30f
commit
01f98abe3e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user