[lldb][NFC] Cleanup ClangASTImporter::LayoutInfo

This commit is contained in:
Raphael Isemann 2020-01-31 09:05:20 +01:00
parent adc0217416
commit 48acece15d
1 changed files with 8 additions and 8 deletions

View File

@ -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()