diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-14 18:48:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-14 18:48:32 +0000 |
commit | d51e5d0ee7137b278933e74aad098a8bf24329ef (patch) | |
tree | ba9260a4f44e1cc8e3585ce70cf7a993dbc71da6 /include | |
parent | 3eadf00b46fbb2aa59b8771a8d8bdf1bfd7f9141 (diff) | |
download | llvm-d51e5d0ee7137b278933e74aad098a8bf24329ef.tar.gz llvm-d51e5d0ee7137b278933e74aad098a8bf24329ef.tar.bz2 llvm-d51e5d0ee7137b278933e74aad098a8bf24329ef.tar.xz |
Add a comment clarifying the role of getPrimitiveTypeSizeInBits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index d4f86f0b5c..4a8bbf03de 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -268,6 +268,11 @@ public: /// This will return zero if the type does not have a size or is not a /// primitive type. /// + /// Note that this may not reflect the size of memory allocated for an + /// instance of the type or the number of bytes that are written when an + /// intance of the type is stored to memory. The TargetData class provides + /// additional query functions to provide this information. + /// unsigned getPrimitiveSizeInBits() const; /// getScalarSizeInBits - If this is a vector type, return the |