[llvm] r299769 - [mips] Remove usage of debug only variable (NFC)
Simon Dardis via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 7 06:49:12 PDT 2017
Author: sdardis
Date: Fri Apr 7 08:49:12 2017
New Revision: 299769
URL: http://llvm.org/viewvc/llvm-project?rev=299769&view=rev
Log:
[mips] Remove usage of debug only variable (NFC)
Fix the lld-x86_64-darwin13 buildbot by removing the declaration of a
debug only variable and instead moving the value into the debug statement.
Modified:
llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp?rev=299769&r1=299768&r2=299769&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp Fri Apr 7 08:49:12 2017
@@ -283,12 +283,12 @@ eliminateFrameIndex(MachineBasicBlock::i
int FrameIndex = MI.getOperand(FIOperandNum).getIndex();
uint64_t stackSize = MF.getFrameInfo().getStackSize();
int64_t spOffset = MF.getFrameInfo().getObjectOffset(FrameIndex);
- unsigned alignment = MF.getFrameInfo().getObjectAlignment(FrameIndex);
DEBUG(errs() << "FrameIndex : " << FrameIndex << "\n"
<< "spOffset : " << spOffset << "\n"
<< "stackSize : " << stackSize << "\n"
- << "alignment : " << alignment << "\n");
+ << "alignment : "
+ << MF.getFrameInfo().getObjectAlignment(FrameIndex) << "\n");
eliminateFI(MI, FIOperandNum, FrameIndex, stackSize, spOffset);
}
More information about the llvm-commits
mailing list