[llvm-commits] [llvm] r75659 - /llvm/trunk/include/llvm/Type.h

Dan Gohman gohman at apple.com
Tue Jul 14 11:48:47 PDT 2009


Author: djg
Date: Tue Jul 14 13:48:32 2009
New Revision: 75659

URL: http://llvm.org/viewvc/llvm-project?rev=75659&view=rev
Log:
Add a comment clarifying the role of getPrimitiveTypeSizeInBits.

Modified:
    llvm/trunk/include/llvm/Type.h

Modified: llvm/trunk/include/llvm/Type.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Type.h?rev=75659&r1=75658&r2=75659&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Type.h (original)
+++ llvm/trunk/include/llvm/Type.h Tue Jul 14 13:48:32 2009
@@ -268,6 +268,11 @@
   /// 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





More information about the llvm-commits mailing list