Expose passinfo from BreakCriticalEdges pass so that it may be "Required" by
[oota-llvm.git] / include / llvm / Bytecode / WriteBytecodePass.h
index 297fbb76e1766644b17a78982e76673cf24b4488..1141a423464e9df625f93c7a86352356f0245dbe 100644 (file)
 
 #include "llvm/Pass.h"
 #include "llvm/Bytecode/Writer.h"
+#include <iostream>
 
 class WriteBytecodePass : public Pass {
-  ostream *Out;           // ostream to print on
+  std::ostream *Out;           // ostream to print on
   bool DeleteStream;
 public:
-  inline WriteBytecodePass(ostream *o = &cout, bool DS = false)
+  WriteBytecodePass() : Out(&std::cout), DeleteStream(false) {}
+  WriteBytecodePass(std::ostream *o, bool DS = false) 
     : Out(o), DeleteStream(DS) {
   }
 
-  const char *getPassName() const { return "Bytecode Writer"; }
-
   inline ~WriteBytecodePass() {
     if (DeleteStream) delete Out;
   }