Print variable's display name in dwarf DIE.
[oota-llvm.git] / lib / Target / Mips / MipsDelaySlotFiller.cpp
index 881cd12929011cdbacd94202d60fd0aaf6ad5f9d..a2b615d8add2aa929154020778fa38a40b639590 100644 (file)
@@ -32,7 +32,7 @@ namespace {
 
     static char ID;
     Filler(TargetMachine &tm) 
-      : MachineFunctionPass((intptr_t)&ID), TM(tm), TII(tm.getInstrInfo()) { }
+      : MachineFunctionPass(&ID), TM(tm), TII(tm.getInstrInfo()) { }
 
     virtual const char *getPassName() const {
       return "Mips Delay Slot Filler";
@@ -62,7 +62,7 @@ runOnMachineBasicBlock(MachineBasicBlock &MBB)
     if (I->getDesc().hasDelaySlot()) {
       MachineBasicBlock::iterator J = I;
       ++J;
-      BuildMI(MBB, J, TII->get(Mips::NOP));
+      BuildMI(MBB, J, I->getDebugLoc(), TII->get(Mips::NOP));
       ++FilledSlots;
       Changed = true;
     }