]> granicus.if.org Git - clang/commitdiff
Add dump method.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 25 Nov 2010 02:07:24 +0000 (02:07 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 25 Nov 2010 02:07:24 +0000 (02:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120141 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Checker/PathSensitive/MemRegion.h
lib/Checker/MemRegion.cpp

index 82b0c14f20cb6378061ca6d0369cdf0584e8d173..6cb68e6beb8ff354982871f539ec0c65dde507d6 100644 (file)
@@ -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) {
index ddcb7d2687a65aafcb8a54beb58d6f7283af33df..4414c1a57a6d387b7e50b20c86d73b97fbcdc510 100644 (file)
@@ -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";
 }