diff options
Diffstat (limited to 'include/llvm/Bytecode/WriteBytecodePass.h')
-rw-r--r-- | include/llvm/Bytecode/WriteBytecodePass.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Bytecode/WriteBytecodePass.h b/include/llvm/Bytecode/WriteBytecodePass.h index ffb0e9a..1141a42 100644 --- a/include/llvm/Bytecode/WriteBytecodePass.h +++ b/include/llvm/Bytecode/WriteBytecodePass.h @@ -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; } |