Default implementation of TargetInstrInfo::getBlockSize().

llvm-svn: 37138
This commit is contained in:
Evan Cheng 2007-05-16 23:53:44 +00:00
parent 429178d727
commit 733b4bd8ae
1 changed files with 4 additions and 0 deletions

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