aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetData.h1
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.