summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430/MSP430RegisterInfo.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/Target/MSP430/MSP430RegisterInfo.cpp
parentf66b72094a9d537a2ec15e6c4d2871b8f58c9aea (diff)
downloadbcm5719-llvm-a48f44d9ee15b2d9f696c5de6f3e60dc84639c0f.tar.gz
bcm5719-llvm-a48f44d9ee15b2d9f696c5de6f3e60dc84639c0f.zip
improve portability to avoid conflicting with std::next in c++'0x.
Patch by Howard Hinnant! llvm-svn: 90365
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430RegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/MSP430/MSP430RegisterInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430RegisterInfo.cpp b/llvm/lib/Target/MSP430/MSP430RegisterInfo.cpp
index 92baad9ac10..717844070fd 100644
--- a/llvm/lib/Target/MSP430/MSP430RegisterInfo.cpp
+++ b/llvm/lib/Target/MSP430/MSP430RegisterInfo.cpp
@@ -193,10 +193,10 @@ MSP430RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
// We need to materialize the offset via add instruction.
unsigned DstReg = MI.getOperand(0).getReg();
if (Offset < 0)
- BuildMI(MBB, next(II), dl, TII.get(MSP430::SUB16ri), DstReg)
+ BuildMI(MBB, llvm::next(II), dl, TII.get(MSP430::SUB16ri), DstReg)
.addReg(DstReg).addImm(-Offset);
else
- BuildMI(MBB, next(II), dl, TII.get(MSP430::ADD16ri), DstReg)
+ BuildMI(MBB, llvm::next(II), dl, TII.get(MSP430::ADD16ri), DstReg)
.addReg(DstReg).addImm(Offset);
return 0;
@@ -251,7 +251,7 @@ void MSP430RegisterInfo::emitPrologue(MachineFunction &MF) const {
.addReg(MSP430::SPW);
// Mark the FramePtr as live-in in every block except the entry.
- for (MachineFunction::iterator I = next(MF.begin()), E = MF.end();
+ for (MachineFunction::iterator I = llvm::next(MF.begin()), E = MF.end();
I != E; ++I)
I->addLiveIn(MSP430::FPW);
OpenPOWER on IntegriCloud