diff options
author | Zachary Turner <zturner@google.com> | 2018-04-17 20:06:43 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-04-17 20:06:43 +0000 |
commit | bee6c22414cd084df26621a1edf07ae1baa3002b (patch) | |
tree | df51d1fed1bff17fb53560b19ded58caf89bba67 /llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp | |
parent | 96591b6202288ffc3c36ce5215873ede14350819 (diff) | |
download | bcm5719-llvm-bee6c22414cd084df26621a1edf07ae1baa3002b.tar.gz bcm5719-llvm-bee6c22414cd084df26621a1edf07ae1baa3002b.zip |
[llvm-pdbutil] Dump first section contribution for each module.
The DBI stream contains a list of module descriptors. At the
beginning of each descriptor is a structure representing the first
section contribution in the output file for that module. LLD
currently doesn't fill out this structure at all, but link.exe
does. So as a precursor to emitting this data in LLD, we first
need a way to dump it so that it can be checked.
This patch adds support for the dumping, and verifies via a test
that LLD emits bogus information.
llvm-svn: 330208
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp b/llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp index dabcc3447ee..931ac7bb81d 100644 --- a/llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp @@ -49,6 +49,10 @@ uint16_t DbiModuleDescriptor::getTypeServerIndex() const { ModInfoFlags::TypeServerIndexShift; } +const SectionContrib &DbiModuleDescriptor::getSectionContrib() const { + return Layout->SC; +} + uint16_t DbiModuleDescriptor::getModuleStreamIndex() const { return Layout->ModDiStream; } |