improve portability to avoid conflicting with std::next in c++'0x.

Patch by Howard Hinnant!

llvm-svn: 90365
This commit is contained in:
Chris Lattner
2009-12-03 00:50:42 +00:00
parent f66b72094a
commit a48f44d9ee
45 changed files with 116 additions and 106 deletions

View File

@@ -328,7 +328,7 @@ void MachineFunction::print(raw_ostream &OS) const {
if (I->second)
OS << " in reg%" << I->second;
if (next(I) != E)
if (llvm::next(I) != E)
OS << ", ";
}
OS << '\n';
@@ -342,7 +342,7 @@ void MachineFunction::print(raw_ostream &OS) const {
else
OS << "%physreg" << *I;
if (next(I) != E)
if (llvm::next(I) != E)
OS << " ";
}
OS << '\n';