summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-05 20:58:01 +0000
committerDan Gohman <gohman@apple.com>2010-05-05 20:58:01 +0000
commit9f2cda73e470673ab63509adc9d096b0a1d13c54 (patch)
treefc0e97c01ec3c1377a7f02bc108a62bfa5944a47 /lib/Target/PowerPC/PPCInstrInfo.cpp
parent3a548e717feda86847e088a25c65de6c4ada4f95 (diff)
downloadllvm-9f2cda73e470673ab63509adc9d096b0a1d13c54.tar.gz
llvm-9f2cda73e470673ab63509adc9d096b0a1d13c54.tar.bz2
llvm-9f2cda73e470673ab63509adc9d096b0a1d13c54.tar.xz
No-ops emitted for scheduling don't correspond with anything in the
user's source, so don't arbitrarily assign them a debug location. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp
index ae1fbd8220..af88b44d6a 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -203,8 +203,6 @@ PPCInstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const {
void PPCInstrInfo::insertNoop(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI) const {
DebugLoc DL;
- if (MI != MBB.end()) DL = MI->getDebugLoc();
-
BuildMI(MBB, MI, DL, get(PPC::NOP));
}