[llvm-commits] [llvm] r47187 - /llvm/trunk/docs/ProgrammersManual.html
Chris Lattner
sabre at nondot.org
Fri Feb 15 14:57:17 PST 2008
Author: lattner
Date: Fri Feb 15 16:57:17 2008
New Revision: 47187
URL: http://llvm.org/viewvc/llvm-project?rev=47187&view=rev
Log:
simplify this.
Modified:
llvm/trunk/docs/ProgrammersManual.html
Modified: llvm/trunk/docs/ProgrammersManual.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ProgrammersManual.html?rev=47187&r1=47186&r2=47187&view=diff
==============================================================================
--- llvm/trunk/docs/ProgrammersManual.html (original)
+++ llvm/trunk/docs/ProgrammersManual.html Fri Feb 15 16:57:17 2008
@@ -1914,9 +1914,7 @@
<div class="doc_code">
<pre>
<a href="#Instruction">Instruction</a> *I = .. ;
-<a href="#BasicBlock">BasicBlock</a> *BB = I->getParent();
-
-BB->getInstList().erase(I);
+I->eraseFromParent();
</pre>
</div>
More information about the llvm-commits
mailing list