[Lldb-commits] [lldb] 48acece - [lldb][NFC] Cleanup ClangASTImporter::LayoutInfo
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 31 00:06:28 PST 2020
Author: Raphael Isemann
Date: 2020-01-31T09:06:09+01:00
New Revision: 48acece15dcf63cb4fee043a4e66ddf3917a359a
URL: https://github.com/llvm/llvm-project/commit/48acece15dcf63cb4fee043a4e66ddf3917a359a
DIFF: https://github.com/llvm/llvm-project/commit/48acece15dcf63cb4fee043a4e66ddf3917a359a.diff
LOG: [lldb][NFC] Cleanup ClangASTImporter::LayoutInfo
Added:
Modified:
lldb/include/lldb/Symbol/ClangASTImporter.h
Removed:
################################################################################
diff --git a/lldb/include/lldb/Symbol/ClangASTImporter.h b/lldb/include/lldb/Symbol/ClangASTImporter.h
index bfdb929119cb..fed49d3b13dd 100644
--- a/lldb/include/lldb/Symbol/ClangASTImporter.h
+++ b/lldb/include/lldb/Symbol/ClangASTImporter.h
@@ -33,15 +33,15 @@ namespace lldb_private {
class ClangASTImporter {
public:
struct LayoutInfo {
- LayoutInfo()
- : bit_size(0), alignment(0), field_offsets(), base_offsets(),
- vbase_offsets() {}
- uint64_t bit_size;
- uint64_t alignment;
+ LayoutInfo() = default;
+ typedef llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits>
+ OffsetMap;
+
+ uint64_t bit_size = 0;
+ uint64_t alignment = 0;
llvm::DenseMap<const clang::FieldDecl *, uint64_t> field_offsets;
- llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits> base_offsets;
- llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits>
- vbase_offsets;
+ OffsetMap base_offsets;
+ OffsetMap vbase_offsets;
};
ClangASTImporter()
More information about the lldb-commits
mailing list