diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-23 22:20:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-23 22:20:22 +0000 |
commit | 3fa94bffcba19f60c8a3f0503a6b1ed3abb1b5c7 (patch) | |
tree | dad1bc29d5e6ceb6f965087bee4fe82359ee3375 | |
parent | ea1049139ecfb281f4ffb07de09a56fde839482c (diff) |
Add a helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21486 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetData.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 5d231c029f..fcdad30b17 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. |