diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-15 22:57:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-15 22:57:17 +0000 |
commit | 3db8f776a4658beee52af12aa9275ad0282b1cdd (patch) | |
tree | a2f0d406cb42dcec82e4270df8fbf74e95369de4 /docs/ProgrammersManual.html | |
parent | 3910c57e7360a8f26420e68fde8f04bc5aa0537c (diff) | |
download | external_llvm-3db8f776a4658beee52af12aa9275ad0282b1cdd.zip external_llvm-3db8f776a4658beee52af12aa9275ad0282b1cdd.tar.gz external_llvm-3db8f776a4658beee52af12aa9275ad0282b1cdd.tar.bz2 |
simplify this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ProgrammersManual.html')
-rw-r--r-- | docs/ProgrammersManual.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 7bec1b9..5932aaf 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -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->getParent(); - -BB->getInstList().erase(I); +I->eraseFromParent(); </pre> </div> |