diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-07-10 22:03:41 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-07-10 22:03:41 +0000 |
| commit | a7b8ffb05b056d7a1756970f714c452656af411f (patch) | |
| tree | 3500cda3ed00dddf3a6fac661cf2b910a26be8e3 /clang/lib/Analysis/BasicObjCFoundationChecks.cpp | |
| parent | f50b0a0cbd739f120aa0cfc7b99ac40465b1f733 (diff) | |
| download | bcm5719-llvm-a7b8ffb05b056d7a1756970f714c452656af411f.tar.gz bcm5719-llvm-a7b8ffb05b056d7a1756970f714c452656af411f.zip | |
Refactored most of the "Store" piece of ValueState into a Store type. The
current store implementation is now encapsulated by BasicStore.
These changes prompted some long due constification of ValueState. Much of the
diffs in this patch include adding "const" qualifiers.
llvm-svn: 53423
Diffstat (limited to 'clang/lib/Analysis/BasicObjCFoundationChecks.cpp')
| -rw-r--r-- | clang/lib/Analysis/BasicObjCFoundationChecks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Analysis/BasicObjCFoundationChecks.cpp b/clang/lib/Analysis/BasicObjCFoundationChecks.cpp index 1667a21494e..4475ed2bc5b 100644 --- a/clang/lib/Analysis/BasicObjCFoundationChecks.cpp +++ b/clang/lib/Analysis/BasicObjCFoundationChecks.cpp @@ -107,7 +107,7 @@ class VISIBILITY_HIDDEN BasicObjCFoundationChecks : public GRSimpleAPICheck { typedef std::vector<BugReport*> ErrorsTy; ErrorsTy Errors; - RVal GetRVal(ValueState* St, Expr* E) { return VMgr->GetRVal(St, E); } + RVal GetRVal(const ValueState* St, Expr* E) { return VMgr->GetRVal(St, E); } bool isNSString(ObjCInterfaceType* T, const char* suffix); bool AuditNSString(NodeTy* N, ObjCMessageExpr* ME); @@ -338,8 +338,8 @@ class VISIBILITY_HIDDEN AuditCFNumberCreate : public GRSimpleAPICheck { IdentifierInfo* II; ValueStateManager* VMgr; - RVal GetRVal(ValueState* St, Expr* E) { return VMgr->GetRVal(St, E); } - RVal GetRVal(ValueState* St, LVal LV) { return VMgr->GetRVal(St, LV); } + RVal GetRVal(const ValueState* St, Expr* E) { return VMgr->GetRVal(St, E); } + RVal GetRVal(const ValueState* St, LVal LV) { return VMgr->GetRVal(St, LV); } public: |

