From: Chris Lattner Date: Sat, 23 Apr 2005 22:20:22 +0000 (+0000) Subject: Add a helper method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3fa94bffcba19f60c8a3f0503a6b1ed3abb1b5c7;p=oota-llvm.git Add a helper method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21486 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 5d231c029f2..fcdad30b177 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -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.