Suppress debug label when not debug.
authorJim Laskey <jlaskey@mac.com>
Tue, 11 Apr 2006 08:11:53 +0000 (08:11 +0000)
committerJim Laskey <jlaskey@mac.com>
Tue, 11 Apr 2006 08:11:53 +0000 (08:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27588 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCRegisterInfo.cpp

index 67f5285b7d2cbd0eebed1d00ce62b9a55205878c..bc282cd4730f00f4fa5e8d8ed44757fc15a189d9 100644 (file)
@@ -407,7 +407,7 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const {
         .addReg(PPC::R1).addReg(PPC::R1).addReg(PPC::R0);
   }
   
-  if (DebugInfo) {
+  if (DebugInfo && DebugInfo->hasInfo()) {
     std::vector<MachineMove *> &Moves = DebugInfo->getFrameMoves();
     unsigned LabelID = DebugInfo->NextLabelID();