From 49e0ccfa780f8966153b892a1736ccb8128ff106 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 24 Mar 2011 16:13:31 +0000 Subject: [PATCH] fix description, PR9542 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128214 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index bc09ca957d0..95632bdf824 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -2219,11 +2219,8 @@ Instruction* newInst = new Instruction(..., pi);

Deleting an instruction from an existing sequence of instructions that form a -BasicBlock is very straight-forward. First, -you must have a pointer to the instruction that you wish to delete. Second, you -need to obtain the pointer to that instruction's basic block. You use the -pointer to the basic block to get its list of instructions and then use the -erase function to remove your instruction. For example:

+BasicBlock is very straight-forward: just +call the instruction's eraseFromParent() method. For example:

@@ -2232,6 +2229,10 @@ I->eraseFromParent();
 
+

This unlinks the instruction from its containing basic block and deletes +it. If you'd just like to unlink the instruction from its containing basic +block but not delete it, you can use the removeFromParent() method.

+