aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Assembly/PrintModulePass.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Assembly/PrintModulePass.h')
-rw-r--r--include/llvm/Assembly/PrintModulePass.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/llvm/Assembly/PrintModulePass.h b/include/llvm/Assembly/PrintModulePass.h
index 7daea4c579..08de60363f 100644
--- a/include/llvm/Assembly/PrintModulePass.h
+++ b/include/llvm/Assembly/PrintModulePass.h
@@ -19,13 +19,12 @@ class PrintModulePass : public Pass {
std::ostream *Out; // ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
- inline PrintModulePass(std::ostream *o = &std::cout, bool DS = false)
+ PrintModulePass() : Out(&std::cerr), DeleteStream(false) {}
+ PrintModulePass(std::ostream *o, bool DS = false)
: Out(o), DeleteStream(DS) {
}
- const char *getPassName() const { return "Module Printer"; }
-
- inline ~PrintModulePass() {
+ ~PrintModulePass() {
if (DeleteStream) delete Out;
}
@@ -44,13 +43,12 @@ class PrintFunctionPass : public FunctionPass {
std::ostream *Out; // ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
- inline PrintFunctionPass(const std::string &B, std::ostream *o = &std::cout,
- bool DS = false)
+ PrintFunctionPass() : Banner(""), Out(&std::cerr), DeleteStream(false) {}
+ PrintFunctionPass(const std::string &B, std::ostream *o = &std::cout,
+ bool DS = false)
: Banner(B), Out(o), DeleteStream(DS) {
}
- const char *getPassName() const { return "Function Printer"; }
-
inline ~PrintFunctionPass() {
if (DeleteStream) delete Out;
}