diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-12-07 20:04:42 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-12-07 20:04:42 +0000 |
commit | 832171cb9724d2d31c8dfb73172e2be8f6dd13ee (patch) | |
tree | 19c97b01f69b4d0765e4ccdd1dac03c854d6e5eb /docs/WritingAnLLVMPass.html | |
parent | 04b4e0595ffffab232a73a78d742e08efb6ebcfb (diff) | |
download | external_llvm-832171cb9724d2d31c8dfb73172e2be8f6dd13ee.zip external_llvm-832171cb9724d2d31c8dfb73172e2be8f6dd13ee.tar.gz external_llvm-832171cb9724d2d31c8dfb73172e2be8f6dd13ee.tar.bz2 |
Removing even more <iostream> includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/WritingAnLLVMPass.html')
-rw-r--r-- | docs/WritingAnLLVMPass.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index b33edb0..0c362d0 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -257,7 +257,7 @@ time.</p> <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 @@ argument "<tt>hello</tt>", and a name "<tt>Hello World Pass</tt>".</p> <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 @@ implement the virtual <tt>print</tt> method:</p> <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 @@ a human readable version of the analysis results. This is useful for debugging 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 |