diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-12-23 02:42:34 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-12-23 02:42:34 +0000 |
| commit | c9b76e4b6e24f4ee4a57d15167143387befd5f77 (patch) | |
| tree | 6b935968420af1dc964de5476aa3667dfcd87e2c | |
| parent | 08cbe57d0065ffe6ef58e24cb66c8547641b7992 (diff) | |
| download | bcm5719-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
| -rw-r--r-- | clang/include/clang/GR/PathSensitive/SValBuilder.h | 8 |
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; } |

