]> granicus.if.org Git - llvm/commit
[PDB] Start emitting source file and line information
authorReid Kleckner <rnk@google.com>
Mon, 19 Jun 2017 17:21:45 +0000 (17:21 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 19 Jun 2017 17:21:45 +0000 (17:21 +0000)
commitd89466b34c1c8426b2367735ad2cbbff84fea614
tree3d705a6032e5be7b3b8492f7e3a5358585facfdb
parent2be270882227e0825a01d01e59d0ad4dc66bf392
[PDB] Start emitting source file and line information

Summary:
This is a first step towards getting line info to show up in VS and
windbg. So far, only llvm-pdbutil can parse the PDBs that we produce.
cvdump doesn't like something about our file checksum tables. I'll have
to dig into that next.

This patch adds a new DebugSubsectionRecordBuilder which takes bytes
directly from some other producer, such as a linker, and sticks it into
the PDB. Line tables only need to be relocated. No data needs to be
rewritten.

File checksums and string tables, on the other hand, need to be re-done.

Reviewers: zturner, ruiu

Subscribers: llvm-commits, hiraditya

Differential Revision: https://reviews.llvm.org/D34257

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305713 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h
include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h
include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h
lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp
lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp