diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-02-05 05:34:29 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-02-05 05:34:29 +0000 |
commit | ad0ef840408ea54384e96c1d3b36650d95308828 (patch) | |
tree | 0298953c944ca1397760586905aa5c37b036641a /clang/lib/Checker/RegionStore.cpp | |
parent | 0d081f373a05717a30f89f5ff9019780c571760f (diff) | |
download | bcm5719-llvm-ad0ef840408ea54384e96c1d3b36650d95308828.tar.gz bcm5719-llvm-ad0ef840408ea54384e96c1d3b36650d95308828.zip |
More GRState* -> Store changes.
llvm-svn: 95365
Diffstat (limited to 'clang/lib/Checker/RegionStore.cpp')
-rw-r--r-- | clang/lib/Checker/RegionStore.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/Checker/RegionStore.cpp b/clang/lib/Checker/RegionStore.cpp index 348450e2331..528419f0a88 100644 --- a/clang/lib/Checker/RegionStore.cpp +++ b/clang/lib/Checker/RegionStore.cpp @@ -389,7 +389,7 @@ public: // Part of public interface to class. /// RemoveDeadBindings - Scans the RegionStore of 'state' for dead values. /// It returns a new Store with these values removed. - void RemoveDeadBindings(GRState &state, Stmt* Loc, SymbolReaper& SymReaper, + Store RemoveDeadBindings(Store store, Stmt* Loc, SymbolReaper& SymReaper, llvm::SmallVectorImpl<const MemRegion*>& RegionRoots); const GRState *EnterStackFrame(const GRState *state, @@ -1789,13 +1789,12 @@ Store RegionStoreManager::Remove(Store store, BindingKey K) { // State pruning. //===----------------------------------------------------------------------===// -void RegionStoreManager::RemoveDeadBindings(GRState &state, Stmt* Loc, - SymbolReaper& SymReaper, +Store RegionStoreManager::RemoveDeadBindings(Store store, Stmt* Loc, + SymbolReaper& SymReaper, llvm::SmallVectorImpl<const MemRegion*>& RegionRoots) { typedef std::pair<Store, const MemRegion *> RBDNode; - Store store = state.getStore(); RegionBindings B = GetRegionBindings(store); // The backmap from regions to subregions. @@ -1985,8 +1984,7 @@ tryAgain: SymReaper.maybeDead(*SI); } - // Write the store back. - state.setStore(new_store); + return new_store; } GRState const *RegionStoreManager::EnterStackFrame(GRState const *state, |