From 83b5ee060df9a309c541908e113b9565eea91d56 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Sep 2002 22:12:58 +0000 Subject: [PATCH] Minor fixes html type fixes: & -> & > -> > etc. Hopefully permission thing works this time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3608 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 2140ddcff3c..25a96a73735 100644 --- a/docs/ProgrammersManual.html +++ b/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"; } @@ -279,9 +279,9 @@ Assuming that i is a BasicBlock::iterator and j is a BasicBlock::const_iterator:
-    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;
 
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, -
Instruction* pinst = &*i;
+
Instruction* pinst = &*i;
is semantically equivalent to @@ -305,7 +305,7 @@ still need the following in order for things to work properly:
 BasicBlock::iterator bbi = ...;
-BranchInst* b = dyn_cast(&*bbi);
+BranchInst* b = dyn_cast<BranchInst>(&*bbi);
 
The following code snippet illustrates use of the conversion @@ -1240,6 +1240,6 @@ pointer to the parent Function. Chris Lattner -Last modified: Fri Sep 6 17:08:58 CDT 2002 +Last modified: Fri Sep 6 17:12:14 CDT 2002