[llvm-commits] CVS: llvm/docs/CommandLine.html ProgrammersManual.html WritingAnLLVMPass.html

Bill Wendling isanbard at gmail.com
Thu Dec 7 12:05:10 PST 2006



Changes in directory llvm/docs:

CommandLine.html updated: 1.42 -> 1.43
ProgrammersManual.html updated: 1.95 -> 1.96
WritingAnLLVMPass.html updated: 1.50 -> 1.51
---
Log message:

Removing even more <iostream> includes.


---
Diffs of the changes:  (+21 -21)

 CommandLine.html       |    4 ++--
 ProgrammersManual.html |   28 ++++++++++++++--------------
 WritingAnLLVMPass.html |   10 +++++-----
 3 files changed, 21 insertions(+), 21 deletions(-)


Index: llvm/docs/CommandLine.html
diff -u llvm/docs/CommandLine.html:1.42 llvm/docs/CommandLine.html:1.43
--- llvm/docs/CommandLine.html:1.42	Mon Jul 31 15:18:49 2006
+++ llvm/docs/CommandLine.html	Thu Dec  7 14:04:41 2006
@@ -1042,7 +1042,7 @@
 // debug build, then the code specified as the option to the macro will be
 // executed.  Otherwise it will not be.  Example:
 //
-// DEBUG(std::cerr << "Bitset contains: " << Bitset << "\n");
+// DOUT << "Bitset contains: " << Bitset << "\n";
 //</i>
 <span class="doc_hilite">#ifdef NDEBUG
 #define DEBUG(X)
@@ -1923,7 +1923,7 @@
 
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2006/07/31 20:18:49 $
+  Last modified: $Date: 2006/12/07 20:04:41 $
 </address>
 
 </body>


Index: llvm/docs/ProgrammersManual.html
diff -u llvm/docs/ProgrammersManual.html:1.95 llvm/docs/ProgrammersManual.html:1.96
--- llvm/docs/ProgrammersManual.html:1.95	Fri Oct 20 02:07:23 2006
+++ llvm/docs/ProgrammersManual.html	Thu Dec  7 14:04:41 2006
@@ -395,7 +395,7 @@
 
 <div class="doc_code">
 <pre>
-DEBUG(std::cerr << "I am here!\n");
+DOUT << "I am here!\n";
 </pre>
 </div>
 
@@ -440,16 +440,16 @@
 
 <div class="doc_code">
 <pre>
-DEBUG(std::cerr << "No debug type\n");
+DOUT << "No debug type\n";
 #undef  DEBUG_TYPE
 #define DEBUG_TYPE "foo"
-DEBUG(std::cerr << "'foo' debug type\n");
+DOUT << "'foo' debug type\n";
 #undef  DEBUG_TYPE
 #define DEBUG_TYPE "bar"
-DEBUG(std::cerr << "'bar' debug type\n");
+DOUT << "'bar' debug type\n";
 #undef  DEBUG_TYPE
 #define DEBUG_TYPE ""
-DEBUG(std::cerr << "No debug type (2)\n");
+DOUT << "No debug type (2)\n";
 </pre>
 </div>
 
@@ -695,8 +695,8 @@
 for (Function::iterator i = func->begin(), e = func->end(); i != e; ++i)
   // <i>Print out the name of the basic block if it has one, and then the</i>
   // <i>number of instructions that it contains</i>
-  std::cerr << "Basic block (name=" << i->getName() << ") has "
-            << i->size() << " instructions.\n";
+  llvm::cerr << "Basic block (name=" << i->getName() << ") has "
+             << i->size() << " instructions.\n";
 </pre>
 </div>
 
@@ -728,14 +728,14 @@
 for (BasicBlock::iterator i = blk->begin(), e = blk->end(); i != e; ++i)
    // <i>The next statement works since operator<<(ostream&,...)</i>
    // <i>is overloaded for Instruction&</i>
-   std::cerr << *i << "\n";
+   llvm::cerr << *i << "\n";
 </pre>
 </div>
 
 <p>However, this isn't really the best way to print out the contents of a
 <tt>BasicBlock</tt>!  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: <tt>std::cerr << *blk << "\n";</tt>.</p>
+basic block itself: <tt>llvm::cerr << *blk << "\n";</tt>.</p>
 
 </div>
 
@@ -761,7 +761,7 @@
 
 // <i>F is a ptr to a Function instance</i>
 for (inst_iterator i = inst_begin(F), e = inst_end(F); i != e; ++i)
-  std::cerr << *i << "\n";
+  llvm::cerr << *i << "\n";
 </pre>
 </div>
 
@@ -837,7 +837,7 @@
 void printNextInstruction(Instruction* inst) {
   BasicBlock::iterator it(inst);
   ++it; // <i>After this line, it refers to the instruction after *inst</i>
-  if (it != inst->getParent()->end()) std::cerr << *it << "\n";
+  if (it != inst->getParent()->end()) llvm::cerr << *it << "\n";
 }
 </pre>
 </div>
@@ -956,8 +956,8 @@
 
 for (Value::use_iterator i = F->use_begin(), e = F->use_end(); i != e; ++i)
   if (Instruction *Inst = dyn_cast<Instruction>(*i)) {
-    std::cerr << "F is used in instruction:\n";
-    std::cerr << *Inst << "\n";
+    llvm::cerr << "F is used in instruction:\n";
+    llvm::cerr << *Inst << "\n";
   }
 </pre>
 </div>
@@ -2554,7 +2554,7 @@
   <a href="mailto:dhurjati at cs.uiuc.edu">Dinakar Dhurjati</a> and
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2006/10/20 07:07:23 $
+  Last modified: $Date: 2006/12/07 20:04:41 $
 </address>
 
 </body>


Index: llvm/docs/WritingAnLLVMPass.html
diff -u llvm/docs/WritingAnLLVMPass.html:1.50 llvm/docs/WritingAnLLVMPass.html:1.51
--- llvm/docs/WritingAnLLVMPass.html:1.50	Thu Sep 28 11:53:47 2006
+++ llvm/docs/WritingAnLLVMPass.html	Thu Dec  7 14:04:41 2006
@@ -257,7 +257,7 @@
 
 <div class="doc_code"><pre>
     <b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &F) {
-      std::cerr << "<i>Hello: </i>" << F.getName() << "\n";
+      llvm::cerr << "<i>Hello: </i>" << F.getName() << "\n";
       <b>return false</b>;
     }
   };  <i>// end of struct Hello</i>
@@ -289,7 +289,7 @@
 <b>namespace</b> {
   <b>struct Hello</b> : <b>public</b> <a href="#FunctionPass">FunctionPass</a> {
     <b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &F) {
-      std::cerr << "<i>Hello: </i>" << F.getName() << "\n";
+      llvm::cerr << "<i>Hello: </i>" << F.getName() << "\n";
       <b>return false</b>;
     }
   };
@@ -863,7 +863,7 @@
 <div class="doc_text">
 
 <div class="doc_code"><pre>
-  <b>virtual void</b> print(std::ostream &O, <b>const</b> Module *M) <b>const</b>;
+  <b>virtual void</b> print(llvm::OStream &O, <b>const</b> Module *M) <b>const</b>;
 </pre></div>
 
 <p>The <tt>print</tt> method must be implemented by "analyses" in order to print
@@ -871,7 +871,7 @@
 an analysis itself, as well as for other people to figure out how an analysis
 works.  Use the <tt>opt -analyze</tt> argument to invoke this method.</p>
 
-<p>The <tt>ostream</tt> parameter specifies the stream to write the results on,
+<p>The <tt>llvm::OStream</tt> parameter specifies the stream to write the results on,
 and the <tt>Module</tt> parameter gives a pointer to the top level module of the
 program that has been analyzed.  Note however that this pointer may be null in
 certain circumstances (such as calling the <tt>Pass::dump()</tt> from a
@@ -1711,7 +1711,7 @@
 
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2006/09/28 16:53:47 $
+  Last modified: $Date: 2006/12/07 20:04:41 $
 </address>
 
 </body>






More information about the llvm-commits mailing list