Tidy pretty-printing for SVals, using 'dump()' instead of 'printStdErr()', and implementing operator<< support for llvm::raw_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75560 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp
index 8a40e4a..6a531b9 100644
--- a/lib/Analysis/MemRegion.cpp
+++ b/lib/Analysis/MemRegion.cpp
@@ -178,7 +178,7 @@
}
void ElementRegion::dumpToStream(llvm::raw_ostream& os) const {
- os << superRegion << '['; Index.print(os); os << ']';
+ os << superRegion << '[' << Index << ']';
}
void FieldRegion::dumpToStream(llvm::raw_ostream& os) const {