Add 'getConditionType()' and 'getArrayIndexType()'

to SValBuilder.  These two query methods are useful
for constructing SVals.

llvm-svn: 122467
This commit is contained in:
Ted Kremenek 2010-12-23 02:42:34 +00:00
parent 08cbe57d00
commit c9b76e4b6e
1 changed files with 8 additions and 0 deletions

View File

@ -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; }