1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-16 20:40:16 +00:00

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

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