[cfe-commits] r58061 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Oct 23 18:38:56 PDT 2008
Author: zhongxingxu
Date: Thu Oct 23 20:38:55 2008
New Revision: 58061
URL: http://llvm.org/viewvc/llvm-project?rev=58061&view=rev
Log:
Add a bunch of dummy methods to make RegionStoreManager non-virtual.
Modified:
cfe/trunk/lib/Analysis/RegionStore.cpp
Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=58061&r1=58060&r2=58061&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Thu Oct 23 20:38:55 2008
@@ -38,6 +38,13 @@
virtual ~RegionStoreManager() {}
+ MemRegionManager& getRegionManager() { return MRMgr; }
+
+ // FIXME: Is this function necessary?
+ SVal GetRegionSVal(Store St, const MemRegion* R) {
+ return Retrieve(St, loc::MemRegionVal(R));
+ }
+
SVal getLValueVar(const GRState* St, const VarDecl* VD);
SVal getLValueIvar(const GRState* St, const ObjCIvarDecl* D, SVal Base);
@@ -48,12 +55,24 @@
SVal ArrayToPointer(SVal Array);
- SVal Retrieve(Store S, Loc L, QualType T);
+ SVal Retrieve(Store S, Loc L, QualType T = QualType());
Store Bind(Store St, Loc LV, SVal V);
+ Store Remove(Store store, Loc LV) {
+ // FIXME: Implement.
+ return store;
+ }
+
Store getInitialStore();
+ Store RemoveDeadBindings(Store store, Stmt* Loc, const LiveVariables& Live,
+ llvm::SmallVectorImpl<const MemRegion*>& RegionRoots,
+ LiveSymbolsTy& LSymbols, DeadSymbolsTy& DSymbols) {
+ // FIXME: Implement this.
+ return store;
+ }
+
Store AddDecl(Store store, const VarDecl* VD, Expr* Ex, SVal InitVal,
unsigned Count);
@@ -66,13 +85,20 @@
static inline RegionBindingsTy GetRegionBindings(Store store) {
return RegionBindingsTy(static_cast<const RegionBindingsTy::TreeTy*>(store));
}
+
+ void print(Store store, std::ostream& Out, const char* nl, const char *sep) {
+ // FIXME: Implement.
+ }
+
+ void iterBindings(Store store, BindingsHandler& f) {
+ // FIXME: Implement.
+ }
};
} // end anonymous namespace
StoreManager* clang::CreateRegionStoreManager(GRStateManager& StMgr) {
- // return new RegionStoreManager(StMgr);
- return 0; // Uncomment the above line when RegionStoreManager is not abstract.
+ return new RegionStoreManager(StMgr);
}
Loc RegionStoreManager::getElementLoc(const VarDecl* VD, SVal Idx) {
More information about the cfe-commits
mailing list