From: Reid Kleckner Date: Fri, 21 Jul 2017 18:32:00 +0000 (+0000) Subject: Fix DebugInfo/PDB build by adding missing changes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f45e52bfbe8f56bf508363ce21fd291a0cddb7a0;p=llvm Fix DebugInfo/PDB build by adding missing changes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308765 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DebugInfo/PDB/Native/GlobalsStream.h b/include/llvm/DebugInfo/PDB/Native/GlobalsStream.h index dcea3d3be0a..8a7326f1b3e 100644 --- a/include/llvm/DebugInfo/PDB/Native/GlobalsStream.h +++ b/include/llvm/DebugInfo/PDB/Native/GlobalsStream.h @@ -34,8 +34,9 @@ public: Error reload(); private: - FixedStreamArray HashBuckets; FixedStreamArray HashRecords; + ArrayRef HashBitmap; + FixedStreamArray HashBuckets; uint32_t NumBuckets; std::unique_ptr Stream; }; diff --git a/include/llvm/DebugInfo/PDB/Native/PublicsStream.h b/include/llvm/DebugInfo/PDB/Native/PublicsStream.h index bf1950c9005..d79745c8231 100644 --- a/include/llvm/DebugInfo/PDB/Native/PublicsStream.h +++ b/include/llvm/DebugInfo/PDB/Native/PublicsStream.h @@ -37,7 +37,7 @@ public: iterator_range getSymbols(bool *HadError) const; FixedStreamArray getHashRecords() const { return HashRecords; } - FixedStreamArray getHashBitmap() const { return HashBitmap; } + ArrayRef getHashBitmap() const { return HashBitmap; } FixedStreamArray getHashBuckets() const { return HashBuckets; } diff --git a/lib/DebugInfo/PDB/Native/GSI.h b/lib/DebugInfo/PDB/Native/GSI.h index ce2b301b3cc..f59d587898f 100644 --- a/lib/DebugInfo/PDB/Native/GSI.h +++ b/lib/DebugInfo/PDB/Native/GSI.h @@ -55,6 +55,7 @@ struct GSIHashHeader { }; Error readGSIHashBuckets(FixedStreamArray &HashBuckets, + ArrayRef &HashBitmap, const GSIHashHeader *HashHdr, BinaryStreamReader &Reader); Error readGSIHashHeader(const GSIHashHeader *&HashHdr, diff --git a/lib/DebugInfo/PDB/Native/GlobalsStream.cpp b/lib/DebugInfo/PDB/Native/GlobalsStream.cpp index a2ee0f047c5..d3d28113e8b 100644 --- a/lib/DebugInfo/PDB/Native/GlobalsStream.cpp +++ b/lib/DebugInfo/PDB/Native/GlobalsStream.cpp @@ -32,7 +32,7 @@ Error GlobalsStream::reload() { if (auto EC = readGSIHashRecords(HashRecords, HashHdr, Reader)) return EC; - if (auto EC = readGSIHashBuckets(HashBuckets, HashHdr, Reader)) + if (auto EC = readGSIHashBuckets(HashBuckets, HashBitmap, HashHdr, Reader)) return EC; NumBuckets = HashBuckets.size();