Explicitly pass in the "unknown" debug location. This is probably not
authorBill Wendling <isanbard@gmail.com>
Tue, 3 Feb 2009 01:33:28 +0000 (01:33 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 3 Feb 2009 01:33:28 +0000 (01:33 +0000)
correct. We need more infrastructure before we can get the DebugLoc info for
these instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63593 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index dd631af91fdd51b8a08ef0ac5ff4238a7ad8f923..a67110ce9b98e509c1615ae66559a7a9c4c494e5 100644 (file)
@@ -333,7 +333,8 @@ void FunctionLoweringInfo::set(Function &fn, MachineFunction &mf,
         unsigned NumRegisters = TLI.getNumRegisters(VT);
         const TargetInstrInfo *TII = MF->getTarget().getInstrInfo();
         for (unsigned i = 0; i != NumRegisters; ++i)
-          BuildMI(MBB, TII->get(TargetInstrInfo::PHI), PHIReg+i);
+          BuildMI(MBB, DebugLoc::getUnknownLoc(),
+                  TII->get(TargetInstrInfo::PHI), PHIReg + i);
         PHIReg += NumRegisters;
       }
     }
index 3ae70c850dae0421fb2807d84dc1440ade033b9e..e669a58f61a61964fef28f72c91feb3a32048f72 100644 (file)
@@ -743,7 +743,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
       unsigned LabelID = MMI->addLandingPad(BB);
 
       const TargetInstrDesc &II = TII.get(TargetInstrInfo::EH_LABEL);
-      BuildMI(BB, II).addImm(LabelID);
+      BuildMI(BB, DebugLoc::getUnknownLoc(), II).addImm(LabelID);
 
       // Mark exception register as live in.
       unsigned Reg = TLI.getExceptionAddressRegister();