diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index d9571c882d4..8378b5c06e2 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -713,8 +713,8 @@ For example:
Instruction *I = .. ; - BasicBlock *BB = I->getParent(); - BB->getInstList().erase(I); + BasicBlock *BB = I->getParent(); + BB->getInstList().erase(I);
@@ -724,13 +724,13 @@ For example:
Replacing individual instructions
Including "llvm/Transforms/Utils/BasicBlock.h +href="/doxygen/BasicBlockUtils_8h-source.html">llvm/Transforms/Utils/BasicBlockUtils.h " permits use of two very useful replace functions: ReplaceInstWithValue and ReplaceInstWithInst.
This function replaces all uses (within a basic block) of a given instruction with a value, and then removes the original instruction. @@ -740,11 +740,11 @@ integer with an null pointer to an integer.
AllocaInst* instToReplace = ...; -ReplaceInstWithValue(*instToReplace->getParent(), instToReplace, +ReplaceInstWithValue(*instToReplace->getParent(), instToReplace, Constant::getNullValue(PointerType::get(Type::IntTy)));-
This function replaces a particular instruction with another instruction. The following example illustrates the replacement of one @@ -752,7 +752,7 @@ instruction. The following example illustrates the replacement of one
AllocaInst* instToReplace = ...; -ReplaceInstWithInst(*instToReplace->getParent(), instToReplace, +ReplaceInstWithInst(*instToReplace->getParent(), instToReplace, new AllocaInst(Type::IntTy, 0, "ptrToReplacedInt");