summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-24 20:32:16 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-24 20:32:16 +0000
commitf3be44f191754667dd2ad609918125c5e73313a3 (patch)
treed1c7c36d51c45cb64c566926024c335cda9b1e35 /clang/lib/Analysis/RegionStore.cpp
parent8921d930d400dec278608a9ec245a2db34ef5aa8 (diff)
downloadbcm5719-llvm-f3be44f191754667dd2ad609918125c5e73313a3.tar.gz
bcm5719-llvm-f3be44f191754667dd2ad609918125c5e73313a3.zip
Added method "getSelfRegion" to Store. This method returns the region associated with the "this" or "self" object (C++ and Objective-C respectively).
llvm-svn: 58107
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r--clang/lib/Analysis/RegionStore.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index 5c75ab369ec..e2b6b13e64d 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/lib/Analysis/RegionStore.cpp
@@ -66,6 +66,14 @@ public:
}
Store getInitialStore();
+
+ /// getSelfRegion - Returns the region for the 'self' (Objective-C) or
+ /// 'this' object (C++). When used when analyzing a normal function this
+ /// method returns NULL.
+ const MemRegion* getSelfRegion(Store) {
+ assert (false && "Not implemented.");
+ return 0;
+ }
Store RemoveDeadBindings(Store store, Stmt* Loc, const LiveVariables& Live,
llvm::SmallVectorImpl<const MemRegion*>& RegionRoots,
OpenPOWER on IntegriCloud