From 9f1185076d60153fd35feb3cadb1b4cd8debc0b6 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 8 Sep 2008 16:01:27 +0000 Subject: [PATCH] Avoid redefinition and nnbreak windows build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55911 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index a4bc5fbbb16..abea11cff60 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -718,7 +718,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) { BasicBlock::iterator const Begin = LLVMBB->begin(); BasicBlock::iterator const End = LLVMBB->end(); - BasicBlock::iterator I = Begin; + BasicBlock::iterator BI = Begin; // Lower any arguments needed in this block if this is the entry block. if (LLVMBB == &Fn.getEntryBlock()) @@ -738,7 +738,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) { } F->setCurrentBlock(BB); // Do FastISel on as many instructions as possible. - for (; I != End; ++I) { + for (; BI != End; ++BI) { // Just before the terminator instruction, insert instructions to // feed PHI nodes in successor blocks. if (isa(I)) @@ -746,41 +746,41 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) { if (DisableFastISelAbort) break; #ifndef NDEBUG - I->dump(); + BI->dump(); #endif assert(0 && "FastISel didn't handle a PHI in a successor"); } // First try normal tablegen-generated "fast" selection. - if (F->SelectInstruction(I)) + if (F->SelectInstruction(BI)) continue; // Next, try calling the target to attempt to handle the instruction. - if (F->TargetSelectInstruction(I)) + if (F->TargetSelectInstruction(BI)) continue; // Then handle certain instructions as single-LLVM-Instruction blocks. - if (isa(I) || isa(I) || - isa(I)) { - if (I->getType() != Type::VoidTy) { + if (isa(BI) || isa(BI) || + isa(BI)) { + if (BI->getType() != Type::VoidTy) { unsigned &R = FuncInfo->ValueMap[I]; if (!R) - R = FuncInfo->CreateRegForValue(I); + R = FuncInfo->CreateRegForValue(BI); } - SelectBasicBlock(LLVMBB, I, next(I)); + SelectBasicBlock(LLVMBB, BI, next(BI)); continue; } if (!DisableFastISelAbort && // For now, don't abort on non-conditional-branch terminators. - (!isa(I) || - (isa(I) && - cast(I)->isUnconditional()))) { + (!isa(BI) || + (isa(BI) && + cast(BI)->isUnconditional()))) { // The "fast" selector couldn't handle something and bailed. // For the purpose of debugging, just abort. #ifndef NDEBUG - I->dump(); + BI->dump(); #endif assert(0 && "FastISel didn't select the entire block"); } @@ -793,8 +793,8 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) { // Run SelectionDAG instruction selection on the remainder of the block // not handled by FastISel. If FastISel is not run, this is the entire // block. - if (I != End) - SelectBasicBlock(LLVMBB, I, End); + if (BI != End) + SelectBasicBlock(LLVMBB, BI, End); FinishBasicBlock(); }