Add a version of the bytecode writer pass that has a default ctor
authorChris Lattner <sabre@nondot.org>
Tue, 23 Jul 2002 19:56:03 +0000 (19:56 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Jul 2002 19:56:03 +0000 (19:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3031 91177308-0d34-0410-b5e6-96231b3b80d8

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;
   }