diff options
author | Eric Christopher <echristo@apple.com> | 2010-04-01 22:54:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-04-01 22:54:42 +0000 |
commit | 1d8f83d0a00e912c55ec0974eba6122666cc6fa1 (patch) | |
tree | 5472afae0575df6c097d8e34f08a07b84ffcf916 /lib/VMCore/PrintModulePass.cpp | |
parent | c8e77640a53823b233f3f7a5c2be12aef9ebc69e (diff) |
Revert r100143.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PrintModulePass.cpp')
-rw-r--r-- | lib/VMCore/PrintModulePass.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/VMCore/PrintModulePass.cpp b/lib/VMCore/PrintModulePass.cpp index 2d69dce07f..f0f6e7a9ef 100644 --- a/lib/VMCore/PrintModulePass.cpp +++ b/lib/VMCore/PrintModulePass.cpp @@ -23,22 +23,21 @@ using namespace llvm; namespace { class PrintModulePass : public ModulePass { - std::string Banner; raw_ostream *Out; // raw_ostream to print on bool DeleteStream; // Delete the ostream in our dtor? public: static char ID; PrintModulePass() : ModulePass(&ID), Out(&dbgs()), DeleteStream(false) {} - PrintModulePass(const std::string &B, raw_ostream *o, bool DS) - : ModulePass(&ID), Banner(B), Out(o), DeleteStream(DS) {} + PrintModulePass(raw_ostream *o, bool DS) + : ModulePass(&ID), Out(o), DeleteStream(DS) {} ~PrintModulePass() { if (DeleteStream) delete Out; } bool runOnModule(Module &M) { - (*Out) << Banner << M; + (*Out) << M; return false; } @@ -86,9 +85,8 @@ Y("print-function","Print function to stderr"); /// createPrintModulePass - Create and return a pass that writes the /// module to the specified raw_ostream. ModulePass *llvm::createPrintModulePass(llvm::raw_ostream *OS, - bool DeleteStream, - const std::string &Banner) { - return new PrintModulePass(Banner, OS, DeleteStream); + bool DeleteStream) { + return new PrintModulePass(OS, DeleteStream); } /// createPrintFunctionPass - Create and return a pass that prints |