diff options
author | Devang Patel <dpatel@apple.com> | 2011-08-04 20:42:11 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-08-04 20:42:11 +0000 |
commit | eabc3cea33b614fc8a40e5afc12861bc130b3dec (patch) | |
tree | e4c547838c220511d8836cc2226b62062f237d12 | |
parent | 3f35bb2d15a4df45a4e7d171b42c33c65b9267a3 (diff) | |
download | bcm5719-llvm-eabc3cea33b614fc8a40e5afc12861bc130b3dec.tar.gz bcm5719-llvm-eabc3cea33b614fc8a40e5afc12861bc130b3dec.zip |
Increment counter inside insertDebugValue().
llvm-svn: 136915
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 096c47fac96..7174bddfb51 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -896,6 +896,7 @@ void UserValue::insertDebugValue(MachineBasicBlock *MBB, SlotIndex Idx, const TargetInstrInfo &TII) { MachineBasicBlock::iterator I = findInsertLocation(MBB, Idx, LIS); MachineOperand &Loc = locations[LocNo]; + ++NumInsertedDebugValues; // Frame index locations may require a target callback. if (Loc.isFI()) { @@ -926,7 +927,6 @@ void UserValue::emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS, DEBUG(dbgs() << " BB#" << MBB->getNumber() << '-' << MBBEnd); insertDebugValue(MBB, Start, LocNo, LIS, TII); - ++NumInsertedDebugValues; // This interval may span multiple basic blocks. // Insert a DBG_VALUE into each one. while(Stop > MBBEnd) { @@ -937,7 +937,6 @@ void UserValue::emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS, MBBEnd = LIS.getMBBEndIdx(MBB); DEBUG(dbgs() << " BB#" << MBB->getNumber() << '-' << MBBEnd); insertDebugValue(MBB, Start, LocNo, LIS, TII); - ++NumInsertedDebugValues; } DEBUG(dbgs() << '\n'); if (MBB == MFEnd) |