diff options
author | Zachary Turner <zturner@google.com> | 2016-05-27 18:20:20 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-05-27 18:20:20 +0000 |
commit | 3a9a23ae62be9959ea1d98ed22fea561efd9cf03 (patch) | |
tree | 3435915d18500427ef98a5802876703929f0fd16 /llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp | |
parent | 346b98011c33cec0b4ab1354ae29b294e1765faa (diff) | |
download | llvm-3a9a23ae62be9959ea1d98ed22fea561efd9cf03.zip llvm-3a9a23ae62be9959ea1d98ed22fea561efd9cf03.tar.gz llvm-3a9a23ae62be9959ea1d98ed22fea561efd9cf03.tar.bz2 |
[pdb] Allow zero-copy read support for symbol streams.
This reduces the amount of memory used by llvm-pdbdump by roughly
1/3 of the size of the PDB file.
Differential Revision: http://reviews.llvm.org/D20724
Reviewed By: ruiu
llvm-svn: 271025
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp b/llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp index 9ccb7ed..67dc81d 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp @@ -67,6 +67,8 @@ struct ModInfo::FileLayout { // Null terminated Obj File Name }; +ModInfo::ModInfo() : Layout(nullptr) {} + ModInfo::ModInfo(codeview::StreamRef Stream) : Layout(nullptr) { codeview::StreamReader Reader(Stream); if (auto EC = Reader.readObject(Layout)) { |