Add a helper method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-04-23 22:20:22 +00:00
parent ea1049139e
commit 3fa94bffcb

View 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.