simplify this.
authorChris Lattner <sabre@nondot.org>
Fri, 15 Feb 2008 22:57:17 +0000 (22:57 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 15 Feb 2008 22:57:17 +0000 (22:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47187 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ProgrammersManual.html

index 7bec1b964dc85a9ca95caedfe790947e2f8d4e6d..5932aaf727f22c3fa1ebed0ce310cc7e24e9142e 100644 (file)
@@ -1914,9 +1914,7 @@ erase function to remove your instruction. For example:</p>
 <div class="doc_code">
 <pre>
 <a href="#Instruction">Instruction</a> *I = .. ;
-<a href="#BasicBlock">BasicBlock</a> *BB = I-&gt;getParent();
-
-BB-&gt;getInstList().erase(I);
+I-&gt;eraseFromParent();
 </pre>
 </div>