mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 09:21:13 +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:
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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user