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> _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits