fix prototype of print, it is (llvm/Pass.h):
authorTorok Edwin <edwintorok@gmail.com>
Tue, 28 Oct 2008 17:29:23 +0000 (17:29 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Tue, 28 Oct 2008 17:29:23 +0000 (17:29 +0000)
  virtual void print(std::ostream &O, const Module *M) const;
instead of
  virtual void print(llvm::OStream &O, const Module *M) const;
as the docs say

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58337 91177308-0d34-0410-b5e6-96231b3b80d8

docs/WritingAnLLVMPass.html

index 5d8b1c104903a75335035c566841e8921dda6b23..047ac6ef2d52a882eba20f0d3985c05c3f46d519 100644 (file)
@@ -977,7 +977,7 @@ implement the virtual <tt>print</tt> method:</p>
 <div class="doc_text">
 
 <div class="doc_code"><pre>
-  <b>virtual void</b> print(llvm::OStream &amp;O, <b>const</b> Module *M) <b>const</b>;
+  <b>virtual void</b> print(std::ostream &amp;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