mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 05:25:53 +00:00
Fix extra whitespace / formatting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185238 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
37cb687fcb
commit
2d6e3bd881
@ -237,13 +237,14 @@ public:
|
|||||||
/// Layout pointer alignment
|
/// Layout pointer alignment
|
||||||
/// FIXME: The defaults need to be removed once all of
|
/// FIXME: The defaults need to be removed once all of
|
||||||
/// the backends/clients are updated.
|
/// the backends/clients are updated.
|
||||||
unsigned getPointerABIAlignment(unsigned AS = 0) const {
|
unsigned getPointerABIAlignment(unsigned AS = 0) const {
|
||||||
DenseMap<unsigned, PointerAlignElem>::const_iterator val = Pointers.find(AS);
|
DenseMap<unsigned, PointerAlignElem>::const_iterator val = Pointers.find(AS);
|
||||||
if (val == Pointers.end()) {
|
if (val == Pointers.end()) {
|
||||||
val = Pointers.find(0);
|
val = Pointers.find(0);
|
||||||
}
|
}
|
||||||
return val->second.ABIAlign;
|
return val->second.ABIAlign;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return target's alignment for stack-based pointers
|
/// Return target's alignment for stack-based pointers
|
||||||
/// FIXME: The defaults need to be removed once all of
|
/// FIXME: The defaults need to be removed once all of
|
||||||
/// the backends/clients are updated.
|
/// the backends/clients are updated.
|
||||||
@ -257,7 +258,7 @@ public:
|
|||||||
/// Layout pointer size
|
/// Layout pointer size
|
||||||
/// FIXME: The defaults need to be removed once all of
|
/// FIXME: The defaults need to be removed once all of
|
||||||
/// the backends/clients are updated.
|
/// the backends/clients are updated.
|
||||||
unsigned getPointerSize(unsigned AS = 0) const {
|
unsigned getPointerSize(unsigned AS = 0) const {
|
||||||
DenseMap<unsigned, PointerAlignElem>::const_iterator val = Pointers.find(AS);
|
DenseMap<unsigned, PointerAlignElem>::const_iterator val = Pointers.find(AS);
|
||||||
if (val == Pointers.end()) {
|
if (val == Pointers.end()) {
|
||||||
val = Pointers.find(0);
|
val = Pointers.find(0);
|
||||||
@ -267,7 +268,7 @@ public:
|
|||||||
/// Layout pointer size, in bits
|
/// Layout pointer size, in bits
|
||||||
/// FIXME: The defaults need to be removed once all of
|
/// FIXME: The defaults need to be removed once all of
|
||||||
/// the backends/clients are updated.
|
/// the backends/clients are updated.
|
||||||
unsigned getPointerSizeInBits(unsigned AS = 0) const {
|
unsigned getPointerSizeInBits(unsigned AS = 0) const {
|
||||||
return getPointerSize(AS) * 8;
|
return getPointerSize(AS) * 8;
|
||||||
}
|
}
|
||||||
/// Size examples:
|
/// Size examples:
|
||||||
|
@ -200,9 +200,7 @@ static unsigned inBytes(unsigned Bits) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DataLayout::parseSpecifier(StringRef Desc) {
|
void DataLayout::parseSpecifier(StringRef Desc) {
|
||||||
|
|
||||||
while (!Desc.empty()) {
|
while (!Desc.empty()) {
|
||||||
|
|
||||||
// Split at '-'.
|
// Split at '-'.
|
||||||
std::pair<StringRef, StringRef> Split = split(Desc, '-');
|
std::pair<StringRef, StringRef> Split = split(Desc, '-');
|
||||||
Desc = Split.second;
|
Desc = Split.second;
|
||||||
@ -582,7 +580,6 @@ unsigned DataLayout::getABIIntegerTypeAlignment(unsigned BitWidth) const {
|
|||||||
return getAlignmentInfo(INTEGER_ALIGN, BitWidth, true, 0);
|
return getAlignmentInfo(INTEGER_ALIGN, BitWidth, true, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned DataLayout::getCallFrameTypeAlignment(Type *Ty) const {
|
unsigned DataLayout::getCallFrameTypeAlignment(Type *Ty) const {
|
||||||
for (unsigned i = 0, e = Alignments.size(); i != e; ++i)
|
for (unsigned i = 0, e = Alignments.size(); i != e; ++i)
|
||||||
if (Alignments[i].AlignType == STACK_ALIGN)
|
if (Alignments[i].AlignType == STACK_ALIGN)
|
||||||
|
Loading…
Reference in New Issue
Block a user