1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/lib/DebugInfo/CodeView
Reid Kleckner b3d6ecbb12 [PDB] Use two DBs when dumping the IPI stream
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
2017-03-23 21:36:25 +00:00
..
CMakeLists.txt [codeview] Move type index remapping logic to type merger 2017-03-23 00:14:23 +00:00
CodeViewError.cpp [pdb] Add the ability to resolve TypeServer PDBs. 2017-02-16 23:35:45 +00:00
CodeViewRecordIO.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
CVSymbolVisitor.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
CVTypeDumper.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
CVTypeVisitor.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
EnumTables.cpp Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
Formatters.cpp Properly parse the TypeServer2 record. 2017-02-03 21:22:27 +00:00
Line.cpp
LLVMBuild.txt [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
ModuleSubstream.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
ModuleSubstreamVisitor.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
RecordSerialization.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
SymbolDumper.cpp [PDB] It is not an error getting the "Invalid" Annotation opcode. 2017-03-17 00:15:27 +00:00
SymbolRecordMapping.cpp Resubmit "[CodeView] Hook CodeViewRecordIO for reading/writing symbols." 2016-12-16 22:48:14 +00:00
SymbolSerializer.cpp [llvm-pdbdump] Add support for dumping symbols from Yaml -> PDB. 2017-03-13 14:57:45 +00:00
TypeDatabase.cpp [pdb] Add a new command for analyzing hash collisions. 2017-02-01 18:30:22 +00:00
TypeDatabaseVisitor.cpp [codeview] Use separate records for LF_SUBSTR_LIST and LF_ARGLIST 2017-03-22 01:37:38 +00:00
TypeDumpVisitor.cpp [PDB] Use two DBs when dumping the IPI stream 2017-03-23 21:36:25 +00:00
TypeRecordMapping.cpp [codeview] Use separate records for LF_SUBSTR_LIST and LF_ARGLIST 2017-03-22 01:37:38 +00:00
TypeSerializer.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
TypeStreamMerger.cpp [codeview] Move type index remapping logic to type merger 2017-03-23 00:14:23 +00:00