[PATCH] [mips] Fix the position of the .loc prologue_end directive in cases when the generated code contains DBG_VALUE instruction.
Eric Christopher
echristo at gmail.com
Sun Feb 8 09:09:34 PST 2015
One small inline comment.
REPOSITORY
rL LLVM
================
Comment at: lib/Target/Mips/MipsSEISelDAGToDAG.cpp:133
@@ -132,3 +132,3 @@
MachineRegisterInfo &RegInfo = MF.getRegInfo();
- const TargetInstrInfo &TII = *Subtarget->getInstrInfo();
- DebugLoc DL = I != MBB.end() ? I->getDebugLoc() : DebugLoc();
+ const MipsInstrInfo &TII =
+ static_cast<const MipsInstrInfo &>(*Subtarget->getInstrInfo());
----------------
The subtarget in MipsISelDAGToDAG is MipsSubtarget so you shouldn't need the cast.
http://reviews.llvm.org/D5209
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list