Add a comment clarifying the role of getPrimitiveTypeSizeInBits.
authorDan Gohman <gohman@apple.com>
Tue, 14 Jul 2009 18:48:32 +0000 (18:48 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 14 Jul 2009 18:48:32 +0000 (18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75659 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Type.h

index d4f86f0b5c44d7f5369167d4b20125d76781acf6..4a8bbf03de48f22e382a736d765101d20d8ce1e6 100644 (file)
@@ -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