[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h

Chris Lattner lattner at cs.uiuc.edu
Sun Sep 19 21:42:47 PDT 2004



Changes in directory llvm/include/llvm/Bytecode:

WriteBytecodePass.h updated: 1.10 -> 1.11
---
Log message:

'Pass' should now not be derived from by clients.  Instead, they should derive
from ModulePass.  Instead of implementing Pass::run, then should implement 
ModulePass::runOnModule.



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

Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h
diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.10 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.11
--- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.10	Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Bytecode/WriteBytecodePass.h	Sun Sep 19 23:42:36 2004
@@ -21,7 +21,7 @@
 
 namespace llvm {
 
-class WriteBytecodePass : public Pass {
+class WriteBytecodePass : public ModulePass {
   std::ostream *Out;           // ostream to print on
   bool DeleteStream;
 public:
@@ -34,7 +34,7 @@
     if (DeleteStream) delete Out;
   }
   
-  bool run(Module &M) {
+  bool runOnModule(Module &M) {
     WriteBytecodeToFile(&M, *Out);    
     return false;
   }






More information about the llvm-commits mailing list