Add a helper method
authorChris Lattner <sabre@nondot.org>
Sat, 23 Apr 2005 22:20:22 +0000 (22:20 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 23 Apr 2005 22:20:22 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21486 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetData.h

index 5d231c029f225037e801387feec27251bf2d1313..fcdad30b177442aef4c308d9068065196f75bee3 100644 (file)
@@ -85,6 +85,7 @@ public:
   unsigned char getDoubleAlignment()  const { return  DoubleAlignment; }
   unsigned char getPointerAlignment() const { return PointerAlignment; }
   unsigned char getPointerSize()      const { return      PointerSize; }
+  unsigned char getPointerSizeInBits()const { return      PointerSize*8; }
 
   /// getTypeSize - Return the number of bytes necessary to hold the specified
   /// type.