mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:41:35 +08:00
[BOLT][NFC] Remove BB::getBranchInfo accepting MCSymbol ptr
Reviewed By: #bolt, rafauler Differential Revision: https://reviews.llvm.org/D144924
This commit is contained in:
@@ -593,19 +593,6 @@ BinaryBasicBlock::getBranchInfo(const BinaryBasicBlock &Succ) const {
|
||||
return std::get<1>(*Result);
|
||||
}
|
||||
|
||||
BinaryBasicBlock::BinaryBranchInfo &
|
||||
BinaryBasicBlock::getBranchInfo(const MCSymbol *Label) {
|
||||
auto BI = branch_info_begin();
|
||||
for (BinaryBasicBlock *BB : successors()) {
|
||||
if (BB->getLabel() == Label)
|
||||
return *BI;
|
||||
++BI;
|
||||
}
|
||||
|
||||
llvm_unreachable("Invalid successor");
|
||||
return *BI;
|
||||
}
|
||||
|
||||
BinaryBasicBlock *BinaryBasicBlock::splitAt(iterator II) {
|
||||
assert(II != end() && "expected iterator pointing to instruction");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user