aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-03 00:50:42 +0000
committerChris Lattner <sabre@nondot.org>2009-12-03 00:50:42 +0000
commita48f44d9ee15b2d9f696c5de6f3e60dc84639c0f (patch)
tree37f783e993984e7b0fdd0a0693a337c59f5d3b04 /llvm/lib/CodeGen/MachineFunction.cpp
parentf66b72094a9d537a2ec15e6c4d2871b8f58c9aea (diff)
downloadllvm-a48f44d9ee15b2d9f696c5de6f3e60dc84639c0f.zip
llvm-a48f44d9ee15b2d9f696c5de6f3e60dc84639c0f.tar.gz
llvm-a48f44d9ee15b2d9f696c5de6f3e60dc84639c0f.tar.bz2
improve portability to avoid conflicting with std::next in c++'0x.
Patch by Howard Hinnant! llvm-svn: 90365
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index d20f446..dd6fd7e 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -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';