mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Delete trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ecd0fb51cb
commit
9fbb52db98
@ -302,14 +302,14 @@ unsigned TargetData::getAlignmentInfo(AlignTypeEnum AlignType,
|
|||||||
BestMatchIdx = LargestInt;
|
BestMatchIdx = LargestInt;
|
||||||
} else {
|
} else {
|
||||||
assert(AlignType == VECTOR_ALIGN && "Unknown alignment type!");
|
assert(AlignType == VECTOR_ALIGN && "Unknown alignment type!");
|
||||||
|
|
||||||
// If we didn't find a vector size that is smaller or equal to this type,
|
// If we didn't find a vector size that is smaller or equal to this type,
|
||||||
// then we will end up scalarizing this to its element type. Just return
|
// then we will end up scalarizing this to its element type. Just return
|
||||||
// the alignment of the element.
|
// the alignment of the element.
|
||||||
return getAlignment(cast<VectorType>(Ty)->getElementType(), ABIInfo);
|
return getAlignment(cast<VectorType>(Ty)->getElementType(), ABIInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Since we got a "best match" index, just return it.
|
// Since we got a "best match" index, just return it.
|
||||||
return ABIInfo ? Alignments[BestMatchIdx].ABIAlign
|
return ABIInfo ? Alignments[BestMatchIdx].ABIAlign
|
||||||
: Alignments[BestMatchIdx].PrefAlign;
|
: Alignments[BestMatchIdx].PrefAlign;
|
||||||
@ -475,12 +475,12 @@ unsigned char TargetData::getAlignment(const Type *Ty, bool abi_or_pref) const {
|
|||||||
: getPointerPrefAlignment());
|
: getPointerPrefAlignment());
|
||||||
case Type::ArrayTyID:
|
case Type::ArrayTyID:
|
||||||
return getAlignment(cast<ArrayType>(Ty)->getElementType(), abi_or_pref);
|
return getAlignment(cast<ArrayType>(Ty)->getElementType(), abi_or_pref);
|
||||||
|
|
||||||
case Type::StructTyID: {
|
case Type::StructTyID: {
|
||||||
// Packed structure types always have an ABI alignment of one.
|
// Packed structure types always have an ABI alignment of one.
|
||||||
if (cast<StructType>(Ty)->isPacked() && abi_or_pref)
|
if (cast<StructType>(Ty)->isPacked() && abi_or_pref)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
// Get the layout annotation... which is lazily created on demand.
|
// Get the layout annotation... which is lazily created on demand.
|
||||||
const StructLayout *Layout = getStructLayout(cast<StructType>(Ty));
|
const StructLayout *Layout = getStructLayout(cast<StructType>(Ty));
|
||||||
unsigned Align = getAlignmentInfo(AGGREGATE_ALIGN, 0, abi_or_pref, Ty);
|
unsigned Align = getAlignmentInfo(AGGREGATE_ALIGN, 0, abi_or_pref, Ty);
|
||||||
|
Loading…
Reference in New Issue
Block a user