summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BasicStore.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-06-24 23:06:47 +0000
committerTed Kremenek <kremenek@apple.com>2009-06-24 23:06:47 +0000
commit799bb6e178e2a808186bbcbd6f75fe660f6b92db (patch)
treea3cd5f03f12ef80cf1a621ddd390c1804d29578c /clang/lib/Analysis/BasicStore.cpp
parentdbc98ae4c24441316e8e29bc02aa3449f3eeb4f9 (diff)
downloadbcm5719-llvm-799bb6e178e2a808186bbcbd6f75fe660f6b92db.tar.gz
bcm5719-llvm-799bb6e178e2a808186bbcbd6f75fe660f6b92db.zip
Remove uses of std::ostream from libAnalysis.
llvm-svn: 74136
Diffstat (limited to 'clang/lib/Analysis/BasicStore.cpp')
-rw-r--r--clang/lib/Analysis/BasicStore.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/clang/lib/Analysis/BasicStore.cpp b/clang/lib/Analysis/BasicStore.cpp
index e4ea2605487..8fbce528fa9 100644
--- a/clang/lib/Analysis/BasicStore.cpp
+++ b/clang/lib/Analysis/BasicStore.cpp
@@ -112,7 +112,8 @@ public:
return BindingsTy(static_cast<const BindingsTy::TreeTy*>(store));
}
- void print(Store store, std::ostream& Out, const char* nl, const char *sep);
+ void print(Store store, llvm::raw_ostream& Out, const char* nl,
+ const char *sep);
private:
ASTContext& getContext() { return StateMgr.getContext(); }
@@ -602,18 +603,19 @@ Store BasicStoreManager::BindDeclInternal(Store store, const VarDecl* VD,
return store;
}
-void BasicStoreManager::print(Store store, std::ostream& O,
+void BasicStoreManager::print(Store store, llvm::raw_ostream& Out,
const char* nl, const char *sep) {
- llvm::raw_os_ostream Out(O);
BindingsTy B = GetBindings(store);
Out << "Variables:" << nl;
bool isFirst = true;
for (BindingsTy::iterator I=B.begin(), E=B.end(); I != E; ++I) {
- if (isFirst) isFirst = false;
- else Out << nl;
+ if (isFirst)
+ isFirst = false;
+ else
+ Out << nl;
Out << ' ' << I.getKey() << " : ";
I.getData().print(Out);
OpenPOWER on IntegriCloud