[Cleanup] Utility function to erase instruction and mark DBG_Values
[oota-llvm.git] / include / llvm / CodeGen / MachineInstr.h
index d7f5341a7f0223fd03270b3032a8e613ffea4122..b71b8bbf1b3f944215933931541549677de2653e 100644 (file)
@@ -685,6 +685,12 @@ public:
   /// eraseFromBundle() to erase individual bundled instructions.
   void eraseFromParent();
 
+  /// Unlink 'this' from the containing basic block and delete it.
+  ///
+  /// For all definitions mark their uses in DBG_VALUE nodes
+  /// as undefined. Otherwise like eraseFromParent().
+  void eraseFromParentAndMarkDBGValuesForRemoval();
+
   /// Unlink 'this' form its basic block and delete it.
   ///
   /// If the instruction is part of a bundle, the other instructions in the