summaryrefslogtreecommitdiff
path: root/lib/VMCore/PrintModulePass.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-04-02 19:29:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-04-02 19:29:15 +0000
commitcf5862d8ac9562e633e6ef7cb55e67c2b7ca9c0a (patch)
tree1fc9a3505f838aa39cb8c03741c692c8e7a4c00b /lib/VMCore/PrintModulePass.cpp
parentd0327f80ecb9d21fca8388efc591b86a30958889 (diff)
downloadllvm-cf5862d8ac9562e633e6ef7cb55e67c2b7ca9c0a.tar.gz
llvm-cf5862d8ac9562e633e6ef7cb55e67c2b7ca9c0a.tar.bz2
llvm-cf5862d8ac9562e633e6ef7cb55e67c2b7ca9c0a.tar.xz
Revert 100204. It broke a bunch of tests and apparently changed what passes are run during codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PrintModulePass.cpp')
-rw-r--r--lib/VMCore/PrintModulePass.cpp12
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