aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-18 15:27:58 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-18 15:27:58 +0000
commitad8329e58df5b0b2c44dca1447b324467a6c5da1 (patch)
tree5543e25f7e51f1b21a358b3f66a95e70d70e5360 /lib/Analysis
parent6297a8ec313c722db50f686fd190842b7ea91118 (diff)
Renamed deterministic EvalBinOp to DetermEvalBinOpNN. This name mangling is unfortunately needed because virtual methods with the same name can be hidden by subclasses.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/GRSimpleVals.cpp5
-rw-r--r--lib/Analysis/GRSimpleVals.h9
-rw-r--r--lib/Analysis/GRTransferFuncs.cpp2
3 files changed, 10 insertions, 6 deletions
diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp
index f95ccb564f..cc31ddddef 100644
--- a/lib/Analysis/GRSimpleVals.cpp
+++ b/lib/Analysis/GRSimpleVals.cpp
@@ -450,8 +450,9 @@ RVal GRSimpleVals::EvalComplement(GRExprEngine& Eng, NonLVal X) {
// Binary operators.
-RVal GRSimpleVals::EvalBinOp(ValueStateManager& StateMgr,
- BinaryOperator::Opcode Op, NonLVal L, NonLVal R) {
+RVal GRSimpleVals::DetermEvalBinOpNN(ValueStateManager& StateMgr,
+ BinaryOperator::Opcode Op,
+ NonLVal L, NonLVal R) {
BasicValueFactory& BasicVals = StateMgr.getBasicVals();
diff --git a/lib/Analysis/GRSimpleVals.h b/lib/Analysis/GRSimpleVals.h
index fc20c3e5bc..ac07f8b324 100644
--- a/lib/Analysis/GRSimpleVals.h
+++ b/lib/Analysis/GRSimpleVals.h
@@ -25,6 +25,12 @@ class PathDiagnostic;
class ASTContext;
class GRSimpleVals : public GRTransferFuncs {
+protected:
+
+ virtual RVal DetermEvalBinOpNN(ValueStateManager& StateMgr,
+ BinaryOperator::Opcode Op,
+ NonLVal L, NonLVal R);
+
public:
GRSimpleVals() {}
virtual ~GRSimpleVals() {}
@@ -44,9 +50,6 @@ public:
// Binary Operators.
- virtual RVal EvalBinOp(ValueStateManager& StateMgr, BinaryOperator::Opcode Op,
- NonLVal L, NonLVal R);
-
virtual RVal EvalBinOp(GRExprEngine& Engine, BinaryOperator::Opcode Op,
LVal L, LVal R);
diff --git a/lib/Analysis/GRTransferFuncs.cpp b/lib/Analysis/GRTransferFuncs.cpp
index 9d9c97f0ed..e30e0712c5 100644
--- a/lib/Analysis/GRTransferFuncs.cpp
+++ b/lib/Analysis/GRTransferFuncs.cpp
@@ -44,5 +44,5 @@ void GRTransferFuncs::EvalBinOpNN(ValueStateSet& OStates,
BinaryOperator::Opcode Op,
NonLVal L, NonLVal R) {
- OStates.Add(StateMgr.SetRVal(St, Ex, EvalBinOp(StateMgr, Op, L, R)));
+ OStates.Add(StateMgr.SetRVal(St, Ex, DetermEvalBinOpNN(StateMgr, Op, L, R)));
}