mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
Rather than duplicating the getPointerSize code just call getPointerSize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34739054ec
commit
2c7b44592f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user