aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-04-20 06:35:22 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-04-20 06:35:22 +0000
commit5cbe5f9105eae5968229fa2d82fc258e61e27153 (patch)
tree05650ac02d268f5c03c74dc4f46d9d2134b07334 /include/clang/Analysis/PathSensitive
parent8217f4ed9c652de1f29693eca3958a4a05863bdb (diff)
Remove loc::FuncVal.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive')
-rw-r--r--include/clang/Analysis/PathSensitive/SVals.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/include/clang/Analysis/PathSensitive/SVals.h b/include/clang/Analysis/PathSensitive/SVals.h
index d16b3390eb..70c0d09a03 100644
--- a/include/clang/Analysis/PathSensitive/SVals.h
+++ b/include/clang/Analysis/PathSensitive/SVals.h
@@ -362,7 +362,7 @@ public:
namespace loc {
-enum Kind { GotoLabelKind, MemRegionKind, FuncValKind, ConcreteIntKind };
+enum Kind { GotoLabelKind, MemRegionKind, ConcreteIntKind };
class GotoLabel : public Loc {
public:
@@ -415,33 +415,6 @@ public:
}
};
-class FuncVal : public Loc {
-public:
- FuncVal(const FunctionDecl* fd) : Loc(FuncValKind, fd) {}
-
- FunctionDecl* getDecl() const {
- return static_cast<FunctionDecl*>(Data);
- }
-
- inline bool operator==(const FuncVal& R) const {
- return getDecl() == R.getDecl();
- }
-
- inline bool operator!=(const FuncVal& R) const {
- return getDecl() != R.getDecl();
- }
-
- // Implement isa<T> support.
- static inline bool classof(const SVal* V) {
- return V->getBaseKind() == LocKind &&
- V->getSubKind() == FuncValKind;
- }
-
- static inline bool classof(const Loc* V) {
- return V->getSubKind() == FuncValKind;
- }
-};
-
class ConcreteInt : public Loc {
public:
ConcreteInt(const llvm::APSInt& V) : Loc(ConcreteIntKind, &V) {}