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/CodeView | |
| parent | 346b98011c33cec0b4ab1354ae29b294e1765faa (diff) | |
| download | bcm5719-llvm-3a9a23ae62be9959ea1d98ed22fea561efd9cf03.tar.gz bcm5719-llvm-3a9a23ae62be9959ea1d98ed22fea561efd9cf03.zip | |
[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/CodeView')
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/TypeDumper.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp index 03b711282b4..7d405ec2453 100644 --- a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp +++ b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp @@ -866,7 +866,7 @@ void CVSymbolDumperImpl::visitUnknownSymbol(SymbolKind Kind, W.printNumber("Length", uint32_t(Data.size())); } -bool CVSymbolDumper::dump(const SymbolIterator::Record &Record) { +bool CVSymbolDumper::dump(const CVRecord<SymbolKind> &Record) { CVSymbolDumperImpl Dumper(CVTD, ObjDelegate.get(), W, PrintRecordBytes); Dumper.visitSymbolRecord(Record); return !Dumper.hadError(); diff --git a/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp b/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp index 74cb2d9e9c4..1db1e54f430 100644 --- a/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp +++ b/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp @@ -676,7 +676,7 @@ void CVTypeDumper::printTypeIndex(StringRef FieldName, TypeIndex TI) { W->printHex(FieldName, TI.getIndex()); } -bool CVTypeDumper::dump(const TypeIterator::Record &Record) { +bool CVTypeDumper::dump(const CVRecord<TypeLeafKind> &Record) { assert(W && "printer should not be null"); CVTypeDumperImpl Dumper(*this, *W, PrintRecordBytes); Dumper.visitTypeRecord(Record); |

