diff options
author | Zachary Turner <zturner@google.com> | 2018-04-04 17:29:09 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-04-04 17:29:09 +0000 |
commit | 15b2bdfd8b1572acc51bbf018d3ae84bbd70b512 (patch) | |
tree | d6a5f6cbdd38d50a84bc3037cfeefbbbcadb0bf9 /llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp | |
parent | 09fda63af04b6e93d10072a33b4b1b1fa61604b9 (diff) | |
download | bcm5719-llvm-15b2bdfd8b1572acc51bbf018d3ae84bbd70b512.tar.gz bcm5719-llvm-15b2bdfd8b1572acc51bbf018d3ae84bbd70b512.zip |
[llvm-pdbutil] Add the ability to explain binary files.
Using this, you can use llvm-pdbutil to export the contents of a
stream to a binary file, then run explain on the binary file so
that it treats the offset as an offset into the stream instead
of an offset into a file. This makes it easy to compare the
contents of the same stream from two different files.
llvm-svn: 329207
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp b/llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp index 0bb543e8c64..973a520ffca 100644 --- a/llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp @@ -20,7 +20,7 @@ using namespace llvm::codeview; using namespace llvm::msf; using namespace llvm::pdb; -InfoStream::InfoStream(std::unique_ptr<MappedBlockStream> Stream) +InfoStream::InfoStream(std::unique_ptr<BinaryStream> Stream) : Stream(std::move(Stream)), Header(nullptr) {} Error InfoStream::reload() { |