diff --git a/bolt/include/bolt/Core/BinaryFunction.h b/bolt/include/bolt/Core/BinaryFunction.h index 4af12f9dffe6..e9e412482f09 100644 --- a/bolt/include/bolt/Core/BinaryFunction.h +++ b/bolt/include/bolt/Core/BinaryFunction.h @@ -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 getBasicBlockRangeFromOffsetToEnd(uint64_t Offset) { - BinaryBasicBlock *BB = getBasicBlockContainingOffset(Offset); - return BB - ? iterator_range(BasicBlocks.begin() + getIndex(BB), end()) - : iterator_range(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.