diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-05 20:58:01 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-05 20:58:01 +0000 |
commit | f62cd20b6285fc250a7a752ff963aa8fd9650048 (patch) | |
tree | 7b1db125424e643779d754b8597af3822ece10c5 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | |
parent | 44d7f498872d66a3ab4b73b75071e12bcae2ea80 (diff) | |
download | bcm5719-llvm-f62cd20b6285fc250a7a752ff963aa8fd9650048.tar.gz bcm5719-llvm-f62cd20b6285fc250a7a752ff963aa8fd9650048.zip |
No-ops emitted for scheduling don't correspond with anything in the
user's source, so don't arbitrarily assign them a debug location.
llvm-svn: 103121
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index ae1fbd8220a..af88b44d6a2 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/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)); } |