Collect and coalesce DBG_VALUE instructions before emitting the function.
[oota-llvm.git] / include / llvm / CodeGen / MachineBasicBlock.h
index 19060933888083467ac0bf37f857664e954e346b..5a6581c21c0fd7b929009dc3946830ea4de0dc8f 100644 (file)
@@ -309,6 +309,10 @@ public:
   /// instruction in the basic block, or end()
   iterator getLastNonDebugInstr();
 
+  const_iterator getLastNonDebugInstr() const {
+    return const_cast<MachineBasicBlock*>(this)->getLastNonDebugInstr();
+  }
+
   /// SplitCriticalEdge - Split the critical edge from this block to the
   /// given successor block, and return the newly created block, or null
   /// if splitting is not possible.