summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-12-23 02:42:34 +0000
committerTed Kremenek <kremenek@apple.com>2010-12-23 02:42:34 +0000
commitc9b76e4b6e24f4ee4a57d15167143387befd5f77 (patch)
tree6b935968420af1dc964de5476aa3667dfcd87e2c /clang
parent08cbe57d0065ffe6ef58e24cb66c8547641b7992 (diff)
downloadbcm5719-llvm-c9b76e4b6e24f4ee4a57d15167143387befd5f77.tar.gz
bcm5719-llvm-c9b76e4b6e24f4ee4a57d15167143387befd5f77.zip
Add 'getConditionType()' and 'getArrayIndexType()'
to SValBuilder. These two query methods are useful for constructing SVals. llvm-svn: 122467
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/GR/PathSensitive/SValBuilder.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/include/clang/GR/PathSensitive/SValBuilder.h b/clang/include/clang/GR/PathSensitive/SValBuilder.h
index 2869a2ff5b8..95780254e34 100644
--- a/clang/include/clang/GR/PathSensitive/SValBuilder.h
+++ b/clang/include/clang/GR/PathSensitive/SValBuilder.h
@@ -95,6 +95,14 @@ public:
const ASTContext &getContext() const { return Context; }
GRStateManager &getStateManager() { return StateMgr; }
+
+ QualType getConditionType() const {
+ return getContext().IntTy;
+ }
+
+ QualType getArrayIndexType() const {
+ return ArrayIndexTy;
+ }
BasicValueFactory &getBasicValueFactory() { return BasicVals; }
const BasicValueFactory &getBasicValueFactory() const { return BasicVals; }
OpenPOWER on IntegriCloud