parent
9fd00c7d25
commit
1da6511b99
|
@ -91,7 +91,7 @@ protected:
|
|||
/// used to (a) impact the alignment of the containing structure, and (b)
|
||||
/// ensure that the individual bit-field will not straddle an alignment
|
||||
/// boundary.
|
||||
unsigned UseBitfieldTypeAlignment : 1;
|
||||
unsigned UseBitFieldTypeAlignment : 1;
|
||||
|
||||
public:
|
||||
IntType getSizeType() const { return SizeType; }
|
||||
|
@ -205,8 +205,8 @@ public:
|
|||
return UserLabelPrefix;
|
||||
}
|
||||
|
||||
bool useBitfieldTypeAlignment() const {
|
||||
return UseBitfieldTypeAlignment;
|
||||
bool useBitFieldTypeAlignment() const {
|
||||
return UseBitFieldTypeAlignment;
|
||||
}
|
||||
|
||||
/// getTypeName - Return the user string for the specified integer type enum.
|
||||
|
|
|
@ -585,7 +585,7 @@ void ASTRecordLayoutBuilder::LayoutBitField(const FieldDecl *D) {
|
|||
uint64_t TypeSize = FieldInfo.first;
|
||||
unsigned FieldAlign = FieldInfo.second;
|
||||
|
||||
if (FieldPacked || !Ctx.Target.useBitfieldTypeAlignment())
|
||||
if (FieldPacked || !Ctx.Target.useBitFieldTypeAlignment())
|
||||
FieldAlign = 1;
|
||||
if (const AlignedAttr *AA = D->getAttr<AlignedAttr>())
|
||||
FieldAlign = std::max(FieldAlign, AA->getMaxAlignment());
|
||||
|
|
|
@ -44,7 +44,7 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) {
|
|||
Char32Type = UnsignedInt;
|
||||
Int64Type = SignedLongLong;
|
||||
SigAtomicType = SignedInt;
|
||||
UseBitfieldTypeAlignment = true;
|
||||
UseBitFieldTypeAlignment = true;
|
||||
FloatFormat = &llvm::APFloat::IEEEsingle;
|
||||
DoubleFormat = &llvm::APFloat::IEEEdouble;
|
||||
LongDoubleFormat = &llvm::APFloat::IEEEdouble;
|
||||
|
|
Loading…
Reference in New Issue