diff options
| author | Zachary Turner <zturner@google.com> | 2016-05-27 03:51:53 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-05-27 03:51:53 +0000 |
| commit | b393d9535981685f2741107784eeab8e650c567c (patch) | |
| tree | 56331204fbef0028f0c5d0f5ace58aeeb5ced9cb /llvm/tools | |
| parent | 18e9102a852193adda32906270fc5fe0bfe73fcb (diff) | |
| download | bcm5719-llvm-b393d9535981685f2741107784eeab8e650c567c.tar.gz bcm5719-llvm-b393d9535981685f2741107784eeab8e650c567c.zip | |
[codeview] Remove StreamReader copying method.
Since we want to move toward zero-copy access to stream data, we
want to remove all instances of copying operations. So get rid
of some of those here.
Differential Revision: http://reviews.llvm.org/D20720
Reviewed By: ruiu
llvm-svn: 270960
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp b/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp index 76b83cd1d00..50e212356a8 100644 --- a/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp +++ b/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp @@ -569,6 +569,11 @@ static Error dumpTpiStream(ScopedPrinter &P, PDBFile &File, return Error::success(); } +static void printSectionOffset(llvm::raw_ostream &OS, + const SectionOffset &Off) { + OS << Off.Off << ", " << Off.Isect; +} + static Error dumpPublicsStream(ScopedPrinter &P, PDBFile &File, codeview::CVTypeDumper &TD) { if (!opts::DumpPublics) @@ -586,7 +591,8 @@ static Error dumpPublicsStream(ScopedPrinter &P, PDBFile &File, P.printList("Hash Buckets", Publics.getHashBuckets()); P.printList("Address Map", Publics.getAddressMap()); P.printList("Thunk Map", Publics.getThunkMap()); - P.printList("Section Offsets", Publics.getSectionOffsets()); + P.printList("Section Offsets", Publics.getSectionOffsets(), + printSectionOffset); ListScope L(P, "Symbols"); codeview::CVSymbolDumper SD(P, TD, nullptr, false); for (auto S : Publics.getSymbols()) { |

