forked from OSchip/llvm-project
a5d187b0ff
Summary: When dumping these records from an object file section, we should use only one type database. However, when dumping from a PDB, we should use two: one for the type stream and one for the IPI stream. Certain type records that normally live in the .debug$T object file section get moved over to the IPI stream of the PDB file and they get new indices. So far, I've noticed that the MSVC linker always moves these records into IPI: - LF_FUNC_ID - LF_MFUNC_ID - LF_STRING_ID - LF_SUBSTR_LIST - LF_BUILDINFO - LF_UDT_MOD_SRC_LINE These records have index fields that can point into TPI or IPI. In particular, LF_SUBSTR_LIST and LF_BUILDINFO point to LF_STRING_ID records to describe compilation command lines. I've modified the dumper to have an optional pointer to the item DB, and to do type name lookup of these fields in that DB. See printItemIndex. The result is that our pdbdump-headers.test is more faithful to the PDB contents and the output is less confusing. Reviewers: ruiu Subscribers: amccarth, zturner, llvm-commits Differential Revision: https://reviews.llvm.org/D31309 llvm-svn: 298649 |
||
---|---|---|
.. | ||
fuzzer | ||
Analyze.cpp | ||
Analyze.h | ||
CMakeLists.txt | ||
CompactTypeDumpVisitor.cpp | ||
CompactTypeDumpVisitor.h | ||
Diff.cpp | ||
Diff.h | ||
LLVMBuild.txt | ||
LLVMOutputStyle.cpp | ||
LLVMOutputStyle.h | ||
LinePrinter.cpp | ||
LinePrinter.h | ||
OutputStyle.h | ||
PdbYaml.cpp | ||
PdbYaml.h | ||
PrettyBuiltinDumper.cpp | ||
PrettyBuiltinDumper.h | ||
PrettyClassDefinitionDumper.cpp | ||
PrettyClassDefinitionDumper.h | ||
PrettyCompilandDumper.cpp | ||
PrettyCompilandDumper.h | ||
PrettyEnumDumper.cpp | ||
PrettyEnumDumper.h | ||
PrettyExternalSymbolDumper.cpp | ||
PrettyExternalSymbolDumper.h | ||
PrettyFunctionDumper.cpp | ||
PrettyFunctionDumper.h | ||
PrettyTypeDumper.cpp | ||
PrettyTypeDumper.h | ||
PrettyTypedefDumper.cpp | ||
PrettyTypedefDumper.h | ||
PrettyVariableDumper.cpp | ||
PrettyVariableDumper.h | ||
StreamUtil.cpp | ||
StreamUtil.h | ||
YAMLOutputStyle.cpp | ||
YAMLOutputStyle.h | ||
YamlSerializationContext.h | ||
YamlSymbolDumper.cpp | ||
YamlSymbolDumper.h | ||
YamlTypeDumper.cpp | ||
YamlTypeDumper.h | ||
llvm-pdbdump.cpp | ||
llvm-pdbdump.h |