From e1aeb13251a4858724d2b7ad1925d25076f23d08 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Thu, 25 Nov 2010 02:07:24 +0000 Subject: [PATCH] Add dump method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120141 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Checker/PathSensitive/MemRegion.h | 2 ++ lib/Checker/MemRegion.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/include/clang/Checker/PathSensitive/MemRegion.h b/include/clang/Checker/PathSensitive/MemRegion.h index 82b0c14f20..6cb68e6beb 100644 --- a/include/clang/Checker/PathSensitive/MemRegion.h +++ b/include/clang/Checker/PathSensitive/MemRegion.h @@ -841,6 +841,8 @@ public: return Ex->getType(); } + void dumpToStream(llvm::raw_ostream& os) const; + void Profile(llvm::FoldingSetNodeID &ID) const; static bool classof(const MemRegion* R) { diff --git a/lib/Checker/MemRegion.cpp b/lib/Checker/MemRegion.cpp index ddcb7d2687..4414c1a57a 100644 --- a/lib/Checker/MemRegion.cpp +++ b/lib/Checker/MemRegion.cpp @@ -407,6 +407,10 @@ void CompoundLiteralRegion::dumpToStream(llvm::raw_ostream& os) const { os << "{ " << (void*) CL << " }"; } +void CXXObjectRegion::dumpToStream(llvm::raw_ostream &os) const { + os << "temp_object"; +} + void CXXThisRegion::dumpToStream(llvm::raw_ostream &os) const { os << "this"; } -- 2.40.0