[llvm-commits] CVS: llvm/include/llvm/Assembly/PrintModulePass.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Sep 19 21:42:43 PDT 2004
Changes in directory llvm/include/llvm/Assembly:
PrintModulePass.h updated: 1.16 -> 1.17
---
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/Assembly/PrintModulePass.h
diff -u llvm/include/llvm/Assembly/PrintModulePass.h:1.16 llvm/include/llvm/Assembly/PrintModulePass.h:1.17
--- llvm/include/llvm/Assembly/PrintModulePass.h:1.16 Sun Jul 4 05:58:20 2004
+++ llvm/include/llvm/Assembly/PrintModulePass.h Sun Sep 19 23:42:31 2004
@@ -24,7 +24,7 @@
namespace llvm {
-class PrintModulePass : public Pass {
+class PrintModulePass : public ModulePass {
std::ostream *Out; // ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
@@ -37,7 +37,7 @@
if (DeleteStream) delete Out;
}
- bool run(Module &M) {
+ bool runOnModule(Module &M) {
(*Out) << M << std::flush;
return false;
}
More information about the llvm-commits
mailing list