mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Convert more loops to range-based equivalents
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207714 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -225,16 +225,15 @@ ComputeCallSiteTable(SmallVectorImpl<CallSiteEntry> &CallSites,
|
||||
|
||||
// Visit all instructions in order of address.
|
||||
for (const auto &MBB : *Asm->MF) {
|
||||
for (MachineBasicBlock::const_iterator MI = MBB.begin(), E = MBB.end();
|
||||
MI != E; ++MI) {
|
||||
if (!MI->isEHLabel()) {
|
||||
if (MI->isCall())
|
||||
SawPotentiallyThrowing |= !CallToNoUnwindFunction(MI);
|
||||
for (const auto &MI : MBB) {
|
||||
if (!MI.isEHLabel()) {
|
||||
if (MI.isCall())
|
||||
SawPotentiallyThrowing |= !CallToNoUnwindFunction(&MI);
|
||||
continue;
|
||||
}
|
||||
|
||||
// End of the previous try-range?
|
||||
MCSymbol *BeginLabel = MI->getOperand(0).getMCSymbol();
|
||||
MCSymbol *BeginLabel = MI.getOperand(0).getMCSymbol();
|
||||
if (BeginLabel == LastLabel)
|
||||
SawPotentiallyThrowing = false;
|
||||
|
||||
|
Reference in New Issue
Block a user