summaryrefslogtreecommitdiff
path: root/include/llvm/Pass.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 06:03:38 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 06:03:38 +0000
commit45cfe545ec8177262dabc70580ce05feaa1c3880 (patch)
treed7e42a138f6f8b54e1a831aff3c73c653ee77784 /include/llvm/Pass.h
parentcb3e3d30054edfc7481bf323b315da4edc63bc44 (diff)
downloadllvm-45cfe545ec8177262dabc70580ce05feaa1c3880.tar.gz
llvm-45cfe545ec8177262dabc70580ce05feaa1c3880.tar.bz2
llvm-45cfe545ec8177262dabc70580ce05feaa1c3880.tar.xz
Change Pass::print to take a raw ostream instead of std::ostream,
update all code that this affects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r--include/llvm/Pass.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 374b933095..a214e4fcdd 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -30,9 +30,7 @@
#define LLVM_PASS_H
#include "llvm/Support/DataTypes.h"
-#include "llvm/Support/Streams.h"
#include <cassert>
-#include <iosfwd>
#include <utility>
#include <vector>
@@ -47,6 +45,7 @@ class ImmutablePass;
class PMStack;
class AnalysisResolver;
class PMDataManager;
+class raw_ostream;
// AnalysisID - Use the PassInfo to identify a pass...
typedef const PassInfo* AnalysisID;
@@ -103,8 +102,7 @@ public:
/// provide the Module* in case the analysis doesn't need it it can just be
/// ignored.
///
- virtual void print(std::ostream &O, const Module *M) const;
- void print(std::ostream *O, const Module *M) const { if (O) print(*O, M); }
+ virtual void print(raw_ostream &O, const Module *M) const;
void dump() const; // dump - Print to stderr.
/// Each pass is responsible for assigning a pass manager to itself.
@@ -202,9 +200,6 @@ public:
AnalysisType &getAnalysisID(const PassInfo *PI, Function &F);
};
-inline std::ostream &operator<<(std::ostream &OS, const Pass &P) {
- P.print(OS, 0); return OS;
-}
//===----------------------------------------------------------------------===//
/// ModulePass class - This class is used to implement unstructured