1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Rather than duplicating the getPointerSize code just call getPointerSize.

llvm-svn: 166923
This commit is contained in:
Duncan Sands 2012-10-29 12:19:04 +00:00
parent 9234853009
commit 38db7fb0cc

View File

@ -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