diff options
author | David Greene <greened@obbligato.org> | 2010-01-05 01:30:18 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2010-01-05 01:30:18 +0000 |
commit | 5f2433ef29b4dc539c1712d40a7e0407d04d79e0 (patch) | |
tree | 020bf63bda3f0e64773a002eb05616add636d2c1 /llvm/lib/VMCore/PrintModulePass.cpp | |
parent | 2c8121fdcb8cde2ddb8a3618e9e047dacb05dcf2 (diff) | |
download | bcm5719-llvm-5f2433ef29b4dc539c1712d40a7e0407d04d79e0.tar.gz bcm5719-llvm-5f2433ef29b4dc539c1712d40a7e0407d04d79e0.zip |
Change errs() to dbgs().
llvm-svn: 92665
Diffstat (limited to 'llvm/lib/VMCore/PrintModulePass.cpp')
-rw-r--r-- | llvm/lib/VMCore/PrintModulePass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/PrintModulePass.cpp b/llvm/lib/VMCore/PrintModulePass.cpp index 3d4f19df05d..f0f6e7a9efe 100644 --- a/llvm/lib/VMCore/PrintModulePass.cpp +++ b/llvm/lib/VMCore/PrintModulePass.cpp @@ -16,6 +16,7 @@ #include "llvm/Function.h" #include "llvm/Module.h" #include "llvm/Pass.h" +#include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -26,7 +27,7 @@ namespace { bool DeleteStream; // Delete the ostream in our dtor? public: static char ID; - PrintModulePass() : ModulePass(&ID), Out(&errs()), + PrintModulePass() : ModulePass(&ID), Out(&dbgs()), DeleteStream(false) {} PrintModulePass(raw_ostream *o, bool DS) : ModulePass(&ID), Out(o), DeleteStream(DS) {} @@ -51,7 +52,7 @@ namespace { bool DeleteStream; // Delete the ostream in our dtor? public: static char ID; - PrintFunctionPass() : FunctionPass(&ID), Banner(""), Out(&errs()), + PrintFunctionPass() : FunctionPass(&ID), Banner(""), Out(&dbgs()), DeleteStream(false) {} PrintFunctionPass(const std::string &B, raw_ostream *o, bool DS) : FunctionPass(&ID), Banner(B), Out(o), DeleteStream(DS) {} |