[clang] 63b414e - [clang][NFC] Annotate `RecordLayoutBuilder.cpp` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 04:01:38 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T15:01:18+03:00
New Revision: 63b414e4977d6e19f05947c88f57cd127fa328e3
URL: https://github.com/llvm/llvm-project/commit/63b414e4977d6e19f05947c88f57cd127fa328e3
DIFF: https://github.com/llvm/llvm-project/commit/63b414e4977d6e19f05947c88f57cd127fa328e3.diff
LOG: [clang][NFC] Annotate `RecordLayoutBuilder.cpp` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/lib/AST/RecordLayoutBuilder.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp
index 6dfaadd92e7973..a3b7431f7ffd6d 100644
--- a/clang/lib/AST/RecordLayoutBuilder.cpp
+++ b/clang/lib/AST/RecordLayoutBuilder.cpp
@@ -602,21 +602,28 @@ class ItaniumRecordLayoutBuilder {
/// Whether the external AST source has provided a layout for this
/// record.
+ LLVM_PREFERRED_TYPE(bool)
unsigned UseExternalLayout : 1;
/// Whether we need to infer alignment, even when we have an
/// externally-provided layout.
+ LLVM_PREFERRED_TYPE(bool)
unsigned InferAlignment : 1;
/// Packed - Whether the record is packed or not.
+ LLVM_PREFERRED_TYPE(bool)
unsigned Packed : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsUnion : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsMac68kAlign : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsNaturalAlign : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned IsMsStruct : 1;
/// UnfilledBitsInLastUnit - If the last field laid out was a bitfield,
More information about the cfe-commits
mailing list