[LLDB][NativePDB] Let native pdb use class layout in debug info.
authorZequan Wu <zequanwu@google.com>
Fri, 23 Sep 2022 17:57:25 +0000 (10:57 -0700)
committerZequan Wu <zequanwu@google.com>
Tue, 27 Sep 2022 18:01:32 +0000 (11:01 -0700)
commita3e60044d75823a3cd8e35de76b7bde2599fe740
treec7b323fa4eb1bbe80be342f6002f72a90ff5c2d5
parent7da2b918878d1694fe52ab1da8ec988a36417da5
[LLDB][NativePDB] Let native pdb use class layout in debug info.

Before, class layout in native pdb is not hooked up in [[https://github.com/llvm/llvm-project/blob/main/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp#L9375-L9380 | here]].
This changes hooked it up by refactoring SymbolFileNativePDB and PdbAstBuilder.
PdbIndex (corresponds to a single pdb file) is removed from PdbAstBuilder, so it
can only be accessed via SymbolFileNativePDB and we can construct PdbAstBuilder
with just TypeSystemClang.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D134509
lldb/include/lldb/Symbol/TypeSystem.h
lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.h
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h
lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h