diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-23 19:56:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-23 19:56:03 +0000 |
commit | 28fe8ce18f7db33a8dc2b47ad07e6e0da491710f (patch) | |
tree | b41be2cd635fb8d02f6047dcee103e30ebe06dac /include/llvm/Bytecode | |
parent | 3c19b9238918ae7ca2c9c7133addb639c37105d5 (diff) | |
download | external_llvm-28fe8ce18f7db33a8dc2b47ad07e6e0da491710f.zip external_llvm-28fe8ce18f7db33a8dc2b47ad07e6e0da491710f.tar.gz external_llvm-28fe8ce18f7db33a8dc2b47ad07e6e0da491710f.tar.bz2 |
Add a version of the bytecode writer pass that has a default ctor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-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; } |