summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2010-07-04 00:00:41 +0000
committerJordy Rose <jediknil@belkadan.com>2010-07-04 00:00:41 +0000
commit674bd55f023ed98ffd0eafdd15d64264bc51030f (patch)
tree508d38a90b79561c282ede32b0cb5d7d51c9ae82 /clang/lib/Basic
parent909f6c7bc47cf36ef2c5f8d07b687b614adac7b3 (diff)
downloadbcm5719-llvm-674bd55f023ed98ffd0eafdd15d64264bc51030f.tar.gz
bcm5719-llvm-674bd55f023ed98ffd0eafdd15d64264bc51030f.zip
Add a new symbol type, SymbolExtent, to represent the extents of memory regions that may not be known at compile-time (such as those created by malloc). This replaces the old setExtent/getExtent API on Store, which used the GRState's GDM to store SVals.
Also adds a getKnownValue() method to SValuator, which gets the integer value of an SVal if it is known to only have one possible value. There are more places in the code that could be using this, but in general we want to be dealing entirely in SVals, so its usefulness is limited. The only visible functionality change is that extents are now honored for any DeclRegion, such as fields and Objective-C ivars, rather than just variables. This shows up in bounds-checking and cast-size-checking. llvm-svn: 107577
Diffstat (limited to 'clang/lib/Basic')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud