Default implementation of TargetInstrInfo::getBlockSize().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-05-16 23:53:44 +00:00
parent d60483ef99
commit e425956b72

View File

@ -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());
}