diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-09-06 22:12:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-09-06 22:12:58 +0000 |
| commit | 7bf5b1d17a895106ba73cca08ddf2387b9009d44 (patch) | |
| tree | b8c64d56dbeebbccbbdb1a44e24e7f32ae8702f0 /llvm/docs/ProgrammersManual.html | |
| parent | 32b15d908dbb232032d6c7ee8acca373fa7b3883 (diff) | |
| download | bcm5719-llvm-7bf5b1d17a895106ba73cca08ddf2387b9009d44.tar.gz bcm5719-llvm-7bf5b1d17a895106ba73cca08ddf2387b9009d44.zip | |
Minor fixes html type fixes: & -> & > -> > etc.
Hopefully permission thing works this time.
llvm-svn: 3608
Diffstat (limited to 'llvm/docs/ProgrammersManual.html')
| -rw-r--r-- | llvm/docs/ProgrammersManual.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html index 2140ddcff3c..25a96a73735 100644 --- a/llvm/docs/ProgrammersManual.html +++ b/llvm/docs/ProgrammersManual.html @@ -229,8 +229,8 @@ contains: // print out the name of the basic block if it has one, and then the // number of instructions that it contains - cerr << "Basic block (name=" << i->getName() << ") has " - << i->size() << " instructions.\n"; + cerr << "Basic block (name=" << i->getName() << ") has " + << i->size() << " instructions.\n"; } </pre> @@ -279,9 +279,9 @@ Assuming that <tt>i</tt> is a <tt>BasicBlock::iterator</tt> and <tt>j</tt> is a <tt>BasicBlock::const_iterator</tt>: <pre> - Instruction& inst = *i; // grab reference to instruction reference - Instruction* pinst = &*i; // grab pointer to instruction reference - const Instruction& inst = *j; + Instruction& inst = *i; // grab reference to instruction reference + Instruction* pinst = &*i; // grab pointer to instruction reference + const Instruction& inst = *j; </pre> However, the iterators you'll be working with in the LLVM framework are special: they will automatically convert to a ptr-to-instance type @@ -292,7 +292,7 @@ operation as a result of the assignment (behind the scenes, this is a result of overloading casting mechanisms). Thus the last line of the last example, -<pre>Instruction* pinst = &*i;</pre> +<pre>Instruction* pinst = &*i;</pre> is semantically equivalent to @@ -305,7 +305,7 @@ still need the following in order for things to work properly: <pre> BasicBlock::iterator bbi = ...; -BranchInst* b = dyn_cast<BranchInst>(&*bbi); +BranchInst* b = dyn_cast<BranchInst>(&*bbi); </pre> The following code snippet illustrates use of the conversion @@ -1240,6 +1240,6 @@ pointer to the parent Function. <a href="mailto:sabre@nondot.org">Chris Lattner</a></address> <!-- Created: Tue Aug 6 15:00:33 CDT 2002 --> <!-- hhmts start --> -Last modified: Fri Sep 6 17:08:58 CDT 2002 +Last modified: Fri Sep 6 17:12:14 CDT 2002 <!-- hhmts end --> </font></body></html> |

