forked from OSchip/llvm-project
Default implementation of TargetInstrInfo::getBlockSize().
llvm-svn: 37138
This commit is contained in:
parent
429178d727
commit
733b4bd8ae
|
@ -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