From: Zhongxing Xu Date: Thu, 25 Nov 2010 02:07:24 +0000 (+0000) Subject: Add dump method. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1aeb13251a4858724d2b7ad1925d25076f23d08;p=clang Add dump method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120141 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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"; }