projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c19b92
)
Add a version of the bytecode writer pass that has a default ctor
author
Chris Lattner
<sabre@nondot.org>
Tue, 23 Jul 2002 19:56:03 +0000
(19:56 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/include/llvm/Bytecode/WriteBytecodePass.h
b/include/llvm/Bytecode/WriteBytecodePass.h
index ffb0e9af3cfb0e4ae8a5f9f6786fbcc09b5e37b2..1141a423464e9df625f93c7a86352356f0245dbe 100644
(file)
--- 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;
}