mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Reapplying: [clang update] Update uses of OnDiskChainedHashTable to the
OnDiskIterableChainedHashTable interface introduced in CFE 206189. Thanks to Justin for guiding me through this! The test-failures I was worried about after I originally committed this turned out to be unrelated. Swift SVN r16340
This commit is contained in:
@@ -245,7 +245,8 @@ ModuleFile::readDeclTable(ArrayRef<uint64_t> fields, StringRef blobData) {
|
||||
auto base = reinterpret_cast<const uint8_t *>(blobData.data());
|
||||
|
||||
using OwnedTable = std::unique_ptr<SerializedDeclTable>;
|
||||
return OwnedTable(SerializedDeclTable::Create(base + tableOffset, base));
|
||||
return OwnedTable(SerializedDeclTable::Create(base + tableOffset,
|
||||
base + sizeof(uint32_t), base));
|
||||
}
|
||||
|
||||
static Optional<KnownProtocolKind> getActualKnownProtocol(unsigned rawKind) {
|
||||
@@ -437,8 +438,9 @@ ModuleFile::readDeclCommentTable(ArrayRef<uint64_t> fields,
|
||||
auto base = reinterpret_cast<const uint8_t *>(blobData.data());
|
||||
|
||||
return std::unique_ptr<SerializedDeclCommentTable>(
|
||||
SerializedDeclCommentTable::Create(base + tableOffset, base,
|
||||
DeclCommentTableInfo(*this)));
|
||||
SerializedDeclCommentTable::Create(base + tableOffset,
|
||||
base + sizeof(uint32_t), base,
|
||||
DeclCommentTableInfo(*this)));
|
||||
}
|
||||
|
||||
bool ModuleFile::readCommentBlock(llvm::BitstreamCursor &cursor) {
|
||||
|
||||
Reference in New Issue
Block a user