]> granicus.if.org Git - llvm/commit
[DebugInfo][PDB] Don't write empty debug streams
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 18 Mar 2019 19:13:23 +0000 (19:13 +0000)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 18 Mar 2019 19:13:23 +0000 (19:13 +0000)
commit8ce49075b47220b4b48458cf638b769f03e40e82
treec1f264d4a83a1634987609737750f52daba05765
parente38a937ce0e856e9a358166d05d08efb4d381614
[DebugInfo][PDB] Don't write empty debug streams

Before, empty debug streams were written as 8 bytes (4 bytes signature + 4 bytes for the GlobalRefs count).

With this patch, unused empty streams aren't emitted anymore. Modules now encode 65535 as an 'unused stream' value, by convention.
Also fix the * Linker * contrib section which wasn't correctly emitted previously.

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

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