diff options
author | Zachary Turner <zturner@google.com> | 2017-04-29 01:13:21 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-04-29 01:13:21 +0000 |
commit | 5b6e4e0aed43017079f854d9909e2c8a0e4e1a07 (patch) | |
tree | 9784242c8790de5e617fb6c27240f13cb18d8b91 /llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp | |
parent | c7cacdc3327de057bfa25d2195cce1f8146e8769 (diff) | |
download | bcm5719-llvm-5b6e4e0aed43017079f854d9909e2c8a0e4e1a07.tar.gz bcm5719-llvm-5b6e4e0aed43017079f854d9909e2c8a0e4e1a07.zip |
[llvm-pdbdump] Abstract some of the YAML/Raw printing code.
There is a lot of duplicate code for printing line info between
YAML and the raw output printer. This introduces a base class
that can be shared between the two, and makes some minor
cleanups in the process.
llvm-svn: 301728
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp index 91b07110362..8920dd9bbea 100644 --- a/llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp @@ -77,10 +77,10 @@ uint32_t DbiModuleDescriptorBuilder::calculateSerializedLength() const { } void DbiModuleDescriptorBuilder::finalize() { - Layout.C13Bytes = 0; Layout.FileNameOffs = 0; // TODO: Fix this Layout.Flags = 0; // TODO: Fix this - Layout.LineBytes = 0; + Layout.C11Bytes = 0; + Layout.C13Bytes = 0; (void)Layout.Mod; // Set in constructor (void)Layout.ModDiStream; // Set in finalizeMsfLayout Layout.NumFiles = SourceFiles.size(); |