diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp index d1413510fff..20f32a2ad9b 100644 --- a/lib/Target/TargetInstrInfo.cpp +++ b/lib/Target/TargetInstrInfo.cpp @@ -84,3 +84,7 @@ bool TargetInstrInfo::PredicateInstruction(MachineInstr *MI, } return MadeChange; } + +unsigned TargetInstrInfo::getBlockSize(MachineBasicBlock *MBB) const { + return (unsigned)std::distance(MBB->begin(), MBB->end()); +}