aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/BasicValueFactory.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-02-05 02:26:30 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-02-05 02:26:30 +0000
commitbfcaf8048d1673320de60a22ca9c297d7484b2a8 (patch)
treed09d37cbff8aa84f7ef123881bae7138a33e2c78 /lib/Checker/BasicValueFactory.cpp
parent9f9e0dbc13a85b35fcf36883619c7e6f89ca5a84 (diff)
Change LazyCompoundVal to a <Store, MemRegion*> pair. We really don't need to
spread GRState* everywhere. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/BasicValueFactory.cpp')
-rw-r--r--lib/Checker/BasicValueFactory.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Checker/BasicValueFactory.cpp b/lib/Checker/BasicValueFactory.cpp
index 3b01e23da1..246beead12 100644
--- a/lib/Checker/BasicValueFactory.cpp
+++ b/lib/Checker/BasicValueFactory.cpp
@@ -24,9 +24,8 @@ void CompoundValData::Profile(llvm::FoldingSetNodeID& ID, QualType T,
}
void LazyCompoundValData::Profile(llvm::FoldingSetNodeID& ID,
- const GRState *state,
- const TypedRegion *region) {
- ID.AddPointer(state);
+ const void *store,const TypedRegion *region) {
+ ID.AddPointer(store);
ID.AddPointer(region);
}
@@ -124,10 +123,10 @@ BasicValueFactory::getCompoundValData(QualType T,
}
const LazyCompoundValData*
-BasicValueFactory::getLazyCompoundValData(const GRState *state,
+BasicValueFactory::getLazyCompoundValData(const void *store,
const TypedRegion *region) {
llvm::FoldingSetNodeID ID;
- LazyCompoundValData::Profile(ID, state, region);
+ LazyCompoundValData::Profile(ID, store, region);
void* InsertPos;
LazyCompoundValData *D =
@@ -135,7 +134,7 @@ BasicValueFactory::getLazyCompoundValData(const GRState *state,
if (!D) {
D = (LazyCompoundValData*) BPAlloc.Allocate<LazyCompoundValData>();
- new (D) LazyCompoundValData(state, region);
+ new (D) LazyCompoundValData(store, region);
LazyCompoundValDataSet.InsertNode(D, InsertPos);
}