summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-06 20:33:48 +0000
committerDan Gohman <gohman@apple.com>2010-05-06 20:33:48 +0000
commit779c69bbc56a0bb907d204233c6fb42305208392 (patch)
treecb2cc3a26190557e10219dd3f233d9546bcdb9cb /llvm/lib/Target/MSP430/MSP430InstrInfo.cpp
parentefb126a665e0d3f6b4dfbcfc5d909bf0f4145198 (diff)
downloadbcm5719-llvm-779c69bbc56a0bb907d204233c6fb42305208392.tar.gz
bcm5719-llvm-779c69bbc56a0bb907d204233c6fb42305208392.zip
Add a DebugLoc argument to TargetInstrInfo::copyRegToReg, so that it
doesn't have to guess. llvm-svn: 103194
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/MSP430/MSP430InstrInfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp b/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp
index d4442d05846..527cf1fd411 100644
--- a/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp
+++ b/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp
@@ -87,10 +87,8 @@ bool MSP430InstrInfo::copyRegToReg(MachineBasicBlock &MBB,
MachineBasicBlock::iterator I,
unsigned DestReg, unsigned SrcReg,
const TargetRegisterClass *DestRC,
- const TargetRegisterClass *SrcRC) const {
- DebugLoc DL;
- if (I != MBB.end()) DL = I->getDebugLoc();
-
+ const TargetRegisterClass *SrcRC,
+ DebugLoc DL) const {
if (DestRC == SrcRC) {
unsigned Opc;
if (DestRC == &MSP430::GR16RegClass) {
OpenPOWER on IntegriCloud