[BOLT][NFC] Remove unused function

(cherry picked from FBD32337755)
This commit is contained in:
Maksim Panchenko 2021-11-10 17:11:34 -08:00
parent a82502d4a8
commit c42d467276
1 changed files with 0 additions and 9 deletions

View File

@ -1685,15 +1685,6 @@ public:
return getIndex(A) - getIndex(B);
}
/// Return basic block range that originally contained offset \p Offset
/// from the function start to the function end.
iterator_range<iterator> getBasicBlockRangeFromOffsetToEnd(uint64_t Offset) {
BinaryBasicBlock *BB = getBasicBlockContainingOffset(Offset);
return BB
? iterator_range<iterator>(BasicBlocks.begin() + getIndex(BB), end())
: iterator_range<iterator>(end(), end());
}
/// Insert the BBs contained in NewBBs into the basic blocks for this
/// function. Update the associated state of all blocks as needed, i.e.
/// BB offsets and BB indices. The new BBs are inserted after Start.