diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-01-07 22:18:50 +0000 | 
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-01-07 22:18:50 +0000 | 
| commit | 682c3a6dd6018b9add5b8e7d12b80d017a02fc63 (patch) | |
| tree | f8a7315bb003e1aaf77849e4fbbe501724c26553 /clang/lib | |
| parent | f32527879972854cbe2f43949428120791d3c697 (diff) | |
| download | bcm5719-llvm-682c3a6dd6018b9add5b8e7d12b80d017a02fc63.tar.gz bcm5719-llvm-682c3a6dd6018b9add5b8e7d12b80d017a02fc63.zip  | |
Refactor MemRegionManager instance variable into parent class.  No functionality change.
llvm-svn: 61888
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Analysis/BasicStore.cpp | 6 | ||||
| -rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 8 | 
2 files changed, 6 insertions, 8 deletions
diff --git a/clang/lib/Analysis/BasicStore.cpp b/clang/lib/Analysis/BasicStore.cpp index fe14a9effc1..9e469c0b5dc 100644 --- a/clang/lib/Analysis/BasicStore.cpp +++ b/clang/lib/Analysis/BasicStore.cpp @@ -26,14 +26,13 @@ namespace {  class VISIBILITY_HIDDEN BasicStoreManager : public StoreManager {    VarBindingsTy::Factory VBFactory;    GRStateManager& StateMgr; -  MemRegionManager MRMgr;    const MemRegion* SelfRegion;  public:    BasicStoreManager(GRStateManager& mgr) -    : VBFactory(mgr.getAllocator()),  +    : StoreManager(mgr.getAllocator()), +      VBFactory(mgr.getAllocator()),         StateMgr(mgr),  -      MRMgr(StateMgr.getAllocator()),         SelfRegion(0) {}    ~BasicStoreManager() {} @@ -49,7 +48,6 @@ public:    Store BindInternal(Store St, Loc LV, SVal V);      Store Remove(Store St, Loc LV);    Store getInitialStore(); -  MemRegionManager& getRegionManager() { return MRMgr; }    // FIXME: Investigate what is using this. This method should be removed.    virtual Loc getLoc(const VarDecl* VD) { diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 4e0215b997e..598107c1ea5 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/lib/Analysis/RegionStore.cpp @@ -54,6 +54,7 @@ namespace clang {  //  //  MemRegions represent chunks of memory with a size (their "extent").  This  //  GDM entry tracks the extents for regions.  Extents are in bytes. +//  namespace { class VISIBILITY_HIDDEN RegionExtents {}; }  static int RegionExtentsIndex = 0;  namespace clang { @@ -108,14 +109,13 @@ class VISIBILITY_HIDDEN RegionStoreManager : public StoreManager {    RegionViews::Factory RVFactory;    GRStateManager& StateMgr; -  MemRegionManager MRMgr;  public:    RegionStoreManager(GRStateManager& mgr)  -    : RBFactory(mgr.getAllocator()), +    : StoreManager(mgr.getAllocator()), +      RBFactory(mgr.getAllocator()),        RVFactory(mgr.getAllocator()), -      StateMgr(mgr),  -      MRMgr(StateMgr.getAllocator()) {} +      StateMgr(mgr) {}    virtual ~RegionStoreManager() {}  | 

