From 55c0461d266d066a9605207775d73751133431f5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 6 Mar 2005 06:00:13 +0000 Subject: [PATCH] cleanup some html remove a statement that is no longer true remove comment about a dead method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20486 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 70c4e3154f5..f335ddf8d02 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -574,18 +574,18 @@ easy to iterate over the individual instructions that make up BasicBlocks. Here's a code snippet that prints out each instruction in a BasicBlock:

-
  // blk is a pointer to a BasicBlock instance
for (BasicBlock::iterator i = blk->begin(), e = blk->end(); i != e; ++i)
// the next statement works since operator<<(ostream&,...)
// is overloaded for Instruction&
cerr << *i << "\n";
+
+  // blk is a pointer to a BasicBlock instance
+  for (BasicBlock::iterator i = blk->begin(), e = blk->end(); i != e; ++i)
+     // the next statement works since operator<<(ostream&,...)
+     // is overloaded for Instruction&
+     std::cerr << *i << "\n";
+

However, this isn't really the best way to print out the contents of a BasicBlock! Since the ostream operators are overloaded for virtually anything you'll care about, you could have just invoked the print routine on the -basic block itself: cerr << *blk << "\n";.

- -

Note that currently operator<< is implemented for Value*, so -it will print out the contents of the pointer, instead of the pointer value you -might expect. This is a deprecated interface that will be removed in the -future, so it's best not to depend on it. To print out the pointer value for -now, you must cast to void*.

+basic block itself: std::cerr << *blk << "\n";.

@@ -2035,9 +2035,6 @@ will loop infinitely.

This method returns a plane_iterator for iteration over the type planes starting at a specific plane, given by \p Ty.
-
const ValueMap* findPlane( const Type* Typ ) cons:
-
This method returns a ValueMap* for a specific type plane. This - interface is deprecated and may go away in the future.
-- 2.34.1