From f7648e71106b5ceb3d0520d0a4a509766378dad7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 17 Jan 2005 00:12:04 +0000 Subject: [PATCH] Fix typos noticed by Gabor Greif, thanks Gabor! llvm-svn: 19621 --- llvm/docs/ProgrammersManual.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html index 714f3c484452..6fc0ec211256 100644 --- a/llvm/docs/ProgrammersManual.html +++ b/llvm/docs/ProgrammersManual.html @@ -904,7 +904,7 @@ and ReplaceInstWithInst.

This function replaces all uses (within a basic block) of a given instruction with a value, and then removes the original instruction. The following example illustrates the replacement of the result of a particular - AllocaInst that allocates memory for a single integer with an null + AllocaInst that allocates memory for a single integer with a null pointer to an integer.

AllocaInst* instToReplace = ...;
BasicBlock::iterator ii(instToReplace);
ReplaceInstWithValue(instToReplace->getParent()->getInstList(), ii,
Constant::getNullValue(PointerType::get(Type::IntTy)));
@@ -1092,9 +1092,9 @@ convenient form for direct access.

  • User::op_iterator - Typedef for iterator over the operand list
    - User::op_const_iterator use_iterator op_begin() - -Get an iterator to the start of the operand list.
    - use_iterator op_end() - Get an iterator to the end of the + op_iterator op_begin() - Get an iterator to the start of +the operand list.
    + op_iterator op_end() - Get an iterator to the end of the operand list.

    Together, these methods make up the iterator based interface to the operands of a User.

  • @@ -1710,13 +1710,13 @@ ConstantArray etc for representing the various types of Constants.

  • ConstantArray : This represents a constant array.
  • ConstantStruct : This represents a constant struct.
  • GlobalValue : This represents either a global variable or a function. In @@ -1819,7 +1819,7 @@ types.

    This subclass of Value defines the interface for incoming formal -arguments to a function. A Function maitanis a list of its formal +arguments to a function. A Function maintains a list of its formal arguments. An argument has a pointer to the parent Function.