Expose passinfo from BreakCriticalEdges pass so that it may be "Required" by
[oota-llvm.git] / include / llvm / Bytecode / WriteBytecodePass.h
index ffb0e9af3cfb0e4ae8a5f9f6786fbcc09b5e37b2..1141a423464e9df625f93c7a86352356f0245dbe 100644 (file)
@@ -16,12 +16,11 @@ class WriteBytecodePass : public Pass {
   std::ostream *Out;           // ostream to print on
   bool DeleteStream;
 public:
-  inline WriteBytecodePass(std::ostream *o = &std::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;
   }