Add a helper method

llvm-svn: 21486
This commit is contained in:
Chris Lattner 2005-04-23 22:20:22 +00:00
parent 8a878ccb25
commit 396890d3ac
1 changed files with 1 additions and 0 deletions

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.