diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-06-24 23:06:47 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-06-24 23:06:47 +0000 |
commit | 799bb6e178e2a808186bbcbd6f75fe660f6b92db (patch) | |
tree | a3cd5f03f12ef80cf1a621ddd390c1804d29578c /clang/lib/Analysis/CFRefCount.cpp | |
parent | dbc98ae4c24441316e8e29bc02aa3449f3eeb4f9 (diff) | |
download | bcm5719-llvm-799bb6e178e2a808186bbcbd6f75fe660f6b92db.tar.gz bcm5719-llvm-799bb6e178e2a808186bbcbd6f75fe660f6b92db.zip |
Remove uses of std::ostream from libAnalysis.
llvm-svn: 74136
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index d4d10cf5d15..5e542a3c48a 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -30,7 +30,6 @@ #include "llvm/ADT/StringExtras.h" #include "llvm/Support/Compiler.h" #include "llvm/ADT/STLExtras.h" -#include <ostream> #include <stdarg.h> using namespace clang; @@ -1674,10 +1673,10 @@ public: ID.Add(T); } - void print(std::ostream& Out) const; + void print(llvm::raw_ostream& Out) const; }; -void RefVal::print(std::ostream& Out) const { +void RefVal::print(llvm::raw_ostream& Out) const { if (!T.isNull()) Out << "Tracked Type:" << T.getAsString() << '\n'; @@ -1831,7 +1830,7 @@ class VISIBILITY_HIDDEN CFRefCount : public GRSimpleVals { public: class BindingsPrinter : public GRState::Printer { public: - virtual void Print(std::ostream& Out, const GRState* state, + virtual void Print(llvm::raw_ostream& Out, const GRState* state, const char* nl, const char* sep); }; @@ -1959,7 +1958,8 @@ public: } // end anonymous namespace -static void PrintPool(std::ostream &Out, SymbolRef Sym, const GRState *state) { +static void PrintPool(llvm::raw_ostream &Out, SymbolRef Sym, + const GRState *state) { Out << ' '; if (Sym) Out << Sym->getSymbolID(); @@ -1975,10 +1975,9 @@ static void PrintPool(std::ostream &Out, SymbolRef Sym, const GRState *state) { Out << '}'; } -void CFRefCount::BindingsPrinter::Print(std::ostream& Out, const GRState* state, +void CFRefCount::BindingsPrinter::Print(llvm::raw_ostream& Out, + const GRState* state, const char* nl, const char* sep) { - - RefBindings B = state->get<RefBindings>(); |