[NFC] Re-Core Fingerprint

Switch from a string core to a 128-bit integral core. This should make
Fingerprints much cheaper to copy around and sets us up for a future
where we can provide alternative implementations of the ambient hashing
algorithm.

rdar://72313506
This commit is contained in:
Robert Widmann
2020-12-14 17:26:25 -08:00
parent c9ef0056dc
commit 76a7ceea64
7 changed files with 47 additions and 38 deletions

View File

@@ -57,7 +57,7 @@ void UnitTestSourceFileDepGraphFactory::addADefinedDecl(StringRef s,
fingerprintString.resize(Fingerprint::DIGEST_LENGTH, 'X');
const Optional<Fingerprint> fingerprint = fingerprintString.empty()
? Optional<Fingerprint>()
: Fingerprint{fingerprintString};
: Fingerprint::fromString(fingerprintString);
AbstractSourceFileDepGraphFactory::addADefinedDecl(key.getValue(),
fingerprint);