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:
3473905
)
Rather than duplicating the getPointerSize code just call getPointerSize.
author
Duncan Sands
<baldrick@free.fr>
Mon, 29 Oct 2012 12:19:04 +0000
(12:19 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Mon, 29 Oct 2012 12:19:04 +0000
(12:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166923
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/DataLayout.h
patch
|
blob
|
history
diff --git
a/include/llvm/DataLayout.h
b/include/llvm/DataLayout.h
index
d778556
..
dfacd9f
100644
(file)
--- a/
include/llvm/DataLayout.h
+++ b/
include/llvm/DataLayout.h
@@
-256,11
+256,7
@@
public:
}
/// Layout pointer size, in bits
unsigned getPointerSizeInBits(unsigned AS) const {
- DenseMap<unsigned, PointerAlignElem>::const_iterator val = Pointers.find(AS);
- if (val == Pointers.end()) {
- val = Pointers.find(0);
- }
- return 8*val->second.TypeBitWidth;
+ return getPointerSize(AS) * 8;
}
/// Layout pointer size, in bits, based on the type.
/// If this function is called with a pointer type, then