From 1bf776204926ca9293d2269ee28c21f0543b7941 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 8 Jun 2017 23:49:01 +0000 Subject: [llvm-pdbdump] Support native ordering of subsections in raw mode. This is the same change for the YAML Output style applied to the raw output style. Previously we would queue up all subsections until every one had been read, and then output them in a pre- determined order. This was because some subsections need to be read first in order to properly dump later subsections. This patch allows them to be dumped in the order they appear. Differential Revision: https://reviews.llvm.org/D34015 llvm-svn: 305034 --- llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp') diff --git a/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp index 2e72242..7b972a1 100644 --- a/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp +++ b/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp @@ -23,6 +23,9 @@ Error DebugStringTableSubsectionRef::initialize(BinaryStreamRef Contents) { Stream = Contents; return Error::success(); } +Error DebugStringTableSubsectionRef::initialize(BinaryStreamReader &Reader) { + return Reader.readStreamRef(Stream, Reader.bytesRemaining()); +} Expected DebugStringTableSubsectionRef::getString(uint32_t Offset) const { -- cgit v1.1