diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-09-13 05:16:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-09-13 05:16:45 +0000 |
commit | a95d3750441ac8ad03e36af8e6e74039c9a3109d (patch) | |
tree | ff6594ca38fba0ebad2d5a63583a909bdfb72a9f /lib/Analysis/GRState.cpp | |
parent | 635d04fe2a14fe79ac9b3802b66f6314ca8bc539 (diff) |
Patch by Csaba Hruska!
"Here is a patch what replaces std::ostream with llvm::raw_ostream. This patch
covers the AST library, but ignores Analysis lib."
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRState.cpp')
-rw-r--r-- | lib/Analysis/GRState.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Analysis/GRState.cpp b/lib/Analysis/GRState.cpp index 72eeda97b1..4bef72c6c5 100644 --- a/lib/Analysis/GRState.cpp +++ b/lib/Analysis/GRState.cpp @@ -154,7 +154,9 @@ void GRState::print(std::ostream& Out, StoreManager& StoreMgr, else { Out << nl; } Out << " (" << (void*) I.getKey() << ") "; - I.getKey()->printPretty(Out); + llvm::raw_os_ostream OutS(Out); + I.getKey()->printPretty(OutS); + OutS.flush(); Out << " : "; I.getData().print(Out); } @@ -171,7 +173,9 @@ void GRState::print(std::ostream& Out, StoreManager& StoreMgr, else { Out << nl; } Out << " (" << (void*) I.getKey() << ") "; - I.getKey()->printPretty(Out); + llvm::raw_os_ostream OutS(Out); + I.getKey()->printPretty(OutS); + OutS.flush(); Out << " : "; I.getData().print(Out); } |