diff options
| author | Dan Gohman <gohman@apple.com> | 2010-05-06 20:33:48 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-05-06 20:33:48 +0000 |
| commit | 75a44ec07c056f9bcf17368b6643810ecfbe1264 (patch) | |
| tree | 7fe414b47ddf800a4b132ac4b3cfe9d3da7ab8e9 /lib/Target/XCore | |
| parent | 1f8534d080a425fa232552decf8012a4d6a95419 (diff) | |
| download | external_llvm-75a44ec07c056f9bcf17368b6643810ecfbe1264.zip external_llvm-75a44ec07c056f9bcf17368b6643810ecfbe1264.tar.gz external_llvm-75a44ec07c056f9bcf17368b6643810ecfbe1264.tar.bz2 | |
Add a DebugLoc argument to TargetInstrInfo::copyRegToReg, so that it
doesn't have to guess.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore')
| -rw-r--r-- | lib/Target/XCore/XCoreInstrInfo.cpp | 5 | ||||
| -rw-r--r-- | lib/Target/XCore/XCoreInstrInfo.h | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/XCore/XCoreInstrInfo.cpp b/lib/Target/XCore/XCoreInstrInfo.cpp index 1fe1e59..4496361 100644 --- a/lib/Target/XCore/XCoreInstrInfo.cpp +++ b/lib/Target/XCore/XCoreInstrInfo.cpp @@ -361,9 +361,8 @@ bool XCoreInstrInfo::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) { if (DestRC == XCore::GRRegsRegisterClass) { diff --git a/lib/Target/XCore/XCoreInstrInfo.h b/lib/Target/XCore/XCoreInstrInfo.h index 3d8b953..7f0a669 100644 --- a/lib/Target/XCore/XCoreInstrInfo.h +++ b/lib/Target/XCore/XCoreInstrInfo.h @@ -67,7 +67,8 @@ public: MachineBasicBlock::iterator I, unsigned DestReg, unsigned SrcReg, const TargetRegisterClass *DestRC, - const TargetRegisterClass *SrcRC) const; + const TargetRegisterClass *SrcRC, + DebugLoc DL) const; virtual void storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, |
