diff --git a/lib/DebugInfo/PDB/Raw/TpiStream.cpp b/lib/DebugInfo/PDB/Raw/TpiStream.cpp index 6ff55bad1b1..d0cda0eecf5 100644 --- a/lib/DebugInfo/PDB/Raw/TpiStream.cpp +++ b/lib/DebugInfo/PDB/Raw/TpiStream.cpp @@ -77,13 +77,13 @@ template static uint32_t getTpiHash(T &Rec) { // We don't know how to calculate a hash value for this yet. // Currently we just skip it. - if (Opts & static_cast(codeview::ClassOptions::ForwardReference)) + if (Opts & static_cast(ClassOptions::ForwardReference)) return 0; - if (!(Opts & static_cast(codeview::ClassOptions::Scoped))) + if (!(Opts & static_cast(ClassOptions::Scoped))) return hashStringV1(Rec.getName()); - if (Opts & static_cast(codeview::ClassOptions::HasUniqueName)) + if (Opts & static_cast(ClassOptions::HasUniqueName)) return hashStringV1(Rec.getUniqueName()); // This case is not implemented yet. @@ -148,7 +148,7 @@ Error TpiStream::verifyHashValues() { } Error TpiStream::reload() { - codeview::StreamReader Reader(*Stream); + StreamReader Reader(*Stream); if (Reader.bytesRemaining() < sizeof(HeaderInfo)) return make_error(raw_error_code::corrupt_file, @@ -190,7 +190,7 @@ Error TpiStream::reload() { MappedBlockStream::createIndexedStream(Header->HashStreamIndex, Pdb); if (!HS) return HS.takeError(); - codeview::StreamReader HSR(**HS); + StreamReader HSR(**HS); uint32_t NumHashValues = Header->HashValueBuffer.Length / sizeof(ulittle32_t); if (NumHashValues != NumTypeRecords()) @@ -247,22 +247,22 @@ uint16_t TpiStream::getTypeHashStreamAuxIndex() const { uint32_t TpiStream::NumHashBuckets() const { return Header->NumHashBuckets; } uint32_t TpiStream::getHashKeySize() const { return Header->HashKeySize; } -codeview::FixedStreamArray +FixedStreamArray TpiStream::getHashValues() const { return HashValues; } -codeview::FixedStreamArray +FixedStreamArray TpiStream::getTypeIndexOffsets() const { return TypeIndexOffsets; } -codeview::FixedStreamArray +FixedStreamArray TpiStream::getHashAdjustments() const { return HashAdjustments; } -iterator_range +iterator_range TpiStream::types(bool *HadError) const { return llvm::make_range(TypeRecords.begin(HadError), TypeRecords.end()); }