diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 945ac98755d..4f458fac553 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"; } @@ -308,7 +308,7 @@ still need the following in order for things to work properly:
 BasicBlock::iterator bbi = ...;
-BranchInst* b = dyn_cast<BranchInst>(&*bbi);
+BranchInst* b = dyn_cast<BranchInst>(&*bbi);
 
The following code snippet illustrates use of the conversion @@ -320,14 +320,14 @@ it via iteration over some structure: void printNextInstruction(Instruction* inst) { BasicBlock::iterator it(inst); ++it; // after this line, it refers to the instruction after *inst. - if(it != inst->getParent()->end()) cerr << *it << endl; + if(it != inst->getParent()->end()) cerr << *it << endl; } Of course, this example is strictly pedagogical, because it'd be better to do something like -
if(inst->getNext()) cerr << inst->getNext() << endl;
+
if(inst->getNext()) cerr << inst->getNext() << endl;
-Last modified: Fri Sep 6 17:12:14 CDT 2002 +Last modified: Fri Sep 6 18:03:31 EDT 2002