diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-08-22 11:25:11 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-08-22 11:25:11 +0000 |
commit | 989e6308713cec4ea077cc768c473334631118b8 (patch) | |
tree | ec3a60db912ad09d1ae299d697a6681399133454 /llvm/unittests/Support/MemoryBufferTest.cpp | |
parent | 774cf3190cd99a7476a982563f6cafd0366438fd (diff) | |
download | bcm5719-llvm-989e6308713cec4ea077cc768c473334631118b8.tar.gz bcm5719-llvm-989e6308713cec4ea077cc768c473334631118b8.zip |
Add a new helper method to Value to strip in-bounds constant offsets of
pointers, but accumulate the offset into an APInt in the process of
stripping it.
This is a pretty handy thing to have, such as when trying to determine
if two pointers are at some constant relative offset. I'll be committing
a patch shortly to use it for exactly that purpose.
llvm-svn: 189000
Diffstat (limited to 'llvm/unittests/Support/MemoryBufferTest.cpp')
0 files changed, 0 insertions, 0 deletions