Rename BasicSourceFileInfo.InterfaceHash

This commit is contained in:
David Ungar
2021-02-24 09:06:35 -08:00
parent ca0f638b64
commit cbd92e65ff
6 changed files with 11 additions and 9 deletions

View File

@@ -974,7 +974,7 @@ void ModuleFile::collectBasicSourceFileInfo(
while (Cursor < End) {
// FilePath (byte offset in 'SourceLocsTextData').
auto fileID = endian::readNext<uint32_t, little, unaligned>(Cursor);
// InterfaceHash (fixed length string).
// InterfaceHashIncludingTypeMembers (fixed length string).
auto fpStr = StringRef{reinterpret_cast<const char *>(Cursor),
Fingerprint::DIGEST_LENGTH};
Cursor += Fingerprint::DIGEST_LENGTH;
@@ -991,7 +991,7 @@ void ModuleFile::collectBasicSourceFileInfo(
BasicSourceFileInfo info;
info.FilePath = filePath;
if (auto fingerprint = Fingerprint::fromString(fpStr))
info.InterfaceHash = fingerprint.getValue();
info.InterfaceHashIncludingTypeMembers = fingerprint.getValue();
else {
llvm::errs() << "Unconvertable fingerprint '" << fpStr << "'\n";
abort();