[cfe-commits] r101369 - in /cfe/trunk: include/clang/Basic/TargetInfo.h lib/AST/RecordLayoutBuilder.cpp lib/Basic/TargetInfo.cpp
Daniel Dunbar
daniel at zuster.org
Thu Apr 15 08:06:18 PDT 2010
Author: ddunbar
Date: Thu Apr 15 10:06:18 2010
New Revision: 101369
URL: http://llvm.org/viewvc/llvm-project?rev=101369&view=rev
Log:
Tweak spelling (Bitfield -> BitField)
Modified:
cfe/trunk/include/clang/Basic/TargetInfo.h
cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
cfe/trunk/lib/Basic/TargetInfo.cpp
Modified: cfe/trunk/include/clang/Basic/TargetInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TargetInfo.h?rev=101369&r1=101368&r2=101369&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/TargetInfo.h (original)
+++ cfe/trunk/include/clang/Basic/TargetInfo.h Thu Apr 15 10:06:18 2010
@@ -91,7 +91,7 @@
/// 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 @@
return UserLabelPrefix;
}
- bool useBitfieldTypeAlignment() const {
- return UseBitfieldTypeAlignment;
+ bool useBitFieldTypeAlignment() const {
+ return UseBitFieldTypeAlignment;
}
/// getTypeName - Return the user string for the specified integer type enum.
Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=101369&r1=101368&r2=101369&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Thu Apr 15 10:06:18 2010
@@ -585,7 +585,7 @@
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());
Modified: cfe/trunk/lib/Basic/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/TargetInfo.cpp?rev=101369&r1=101368&r2=101369&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/TargetInfo.cpp (original)
+++ cfe/trunk/lib/Basic/TargetInfo.cpp Thu Apr 15 10:06:18 2010
@@ -44,7 +44,7 @@
Char32Type = UnsignedInt;
Int64Type = SignedLongLong;
SigAtomicType = SignedInt;
- UseBitfieldTypeAlignment = true;
+ UseBitFieldTypeAlignment = true;
FloatFormat = &llvm::APFloat::IEEEsingle;
DoubleFormat = &llvm::APFloat::IEEEdouble;
LongDoubleFormat = &llvm::APFloat::IEEEdouble;
More information about the cfe-commits
mailing list