OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea10491
)
Add a helper method
author
Chris Lattner
<sabre@nondot.org>
Sat, 23 Apr 2005 22:20:22 +0000
(22:20 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 23 Apr 2005 22:20:22 +0000
(22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21486
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Target/TargetData.h
patch
|
blob
|
history
diff --git
a/include/llvm/Target/TargetData.h
b/include/llvm/Target/TargetData.h
index
5d231c0
..
fcdad30
100644
(file)
--- 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.