diff options
author | Micah Villmow <villmow@gmail.com> | 2012-10-24 18:36:13 +0000 |
---|---|---|
committer | Micah Villmow <villmow@gmail.com> | 2012-10-24 18:36:13 +0000 |
commit | b52fb876171e3670e7307fda4459ca005d49d9f5 (patch) | |
tree | e3327db438225073f62c4f4733c814082c9abfe5 /include/llvm/DataLayout.h | |
parent | 199063ea37d8cc651a20ab00eef4326cd9331371 (diff) |
Add some cleanup to the DataLayout changes requested by Chandler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DataLayout.h')
-rw-r--r-- | include/llvm/DataLayout.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/DataLayout.h b/include/llvm/DataLayout.h index 0a37353da5..d778556684 100644 --- a/include/llvm/DataLayout.h +++ b/include/llvm/DataLayout.h @@ -262,6 +262,14 @@ public: } return 8*val->second.TypeBitWidth; } + /// Layout pointer size, in bits, based on the type. + /// If this function is called with a pointer type, then + /// the type size of the pointer is returned. + /// If this function is called with a vector of pointers, + /// then the type size of the pointer is returned. + /// Otherwise the type sizeo f a default pointer is returned. + unsigned getPointerTypeSizeInBits(Type* Ty) const; + /// Size examples: /// /// Type SizeInBits StoreSizeInBits AllocSizeInBits[*] |