aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Raw/PublicsStream.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-05-18 16:24:16 +0000
committerRui Ueyama <ruiu@google.com>2016-05-18 16:24:16 +0000
commit350b29862f059d21d16df5e87b0688a7afa4f576 (patch)
treea3969005bd3374b0f7e70c7f7d0d55a3c0b66347 /llvm/lib/DebugInfo/PDB/Raw/PublicsStream.cpp
parent0548ce4881b18a5cf751afa35725e57ad741cc81 (diff)
downloadllvm-350b29862f059d21d16df5e87b0688a7afa4f576.zip
llvm-350b29862f059d21d16df5e87b0688a7afa4f576.tar.gz
llvm-350b29862f059d21d16df5e87b0688a7afa4f576.tar.bz2
pdbdump: Print out section offsets in the publics stream.
llvm-svn: 269955
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/PublicsStream.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/PublicsStream.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/PublicsStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/PublicsStream.cpp
index 8e98405..eef5b1d 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/PublicsStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/PublicsStream.cpp
@@ -164,10 +164,14 @@ Error PublicsStream::reload() {
std::copy(TempThunkMap.begin(), TempThunkMap.end(), ThunkMap.begin());
// Something called "section map" follows.
- std::vector<SectionOffset> SectionMap(Header->NumSections);
- if (auto EC = Reader.readArray<SectionOffset>(SectionMap))
+ std::vector<SectionOffset> Offsets(Header->NumSections);
+ if (auto EC = Reader.readArray<SectionOffset>(Offsets))
return make_error<RawError>(raw_error_code::corrupt_file,
"Could not read a section map.");
+ for (auto &SO : Offsets) {
+ SectionOffsets.push_back(SO.Off);
+ SectionOffsets.push_back(SO.Isect);
+ }
if (Reader.bytesRemaining() > 0)
return make_error<RawError>(raw_error_code::corrupt_file,