teach reassociate to factor x+x+x -> x*3. While I'm at it,
[oota-llvm.git] / lib / VMCore / PrintModulePass.cpp
index 7cb009a7d3c52c54ffcf57f55d356563c86f012d..3d4f19df05d8a5d903bb56a17c8b4cd20939e99c 100644 (file)
 #include "llvm/Function.h"
 #include "llvm/Module.h"
 #include "llvm/Pass.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
 namespace {
 
-  class VISIBILITY_HIDDEN PrintModulePass : public ModulePass {
+  class PrintModulePass : public ModulePass {
     raw_ostream *Out;       // raw_ostream to print on
     bool DeleteStream;      // Delete the ostream in our dtor?
   public:
@@ -38,7 +37,6 @@ namespace {
     
     bool runOnModule(Module &M) {
       (*Out) << M;
-      Out->flush();
       return false;
     }
     
@@ -67,7 +65,6 @@ namespace {
     //
     bool runOnFunction(Function &F) {
       (*Out) << Banner << static_cast<Value&>(F);
-      Out->flush();
       return false;
     }