mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -69,7 +69,7 @@ template <> struct ScalarTraits<swift::Fingerprint> {
|
||||
os << fp.getRawValue();
|
||||
}
|
||||
static StringRef input(StringRef s, void *, swift::Fingerprint &fp) {
|
||||
fp = swift::Fingerprint{s.str()};
|
||||
fp = swift::Fingerprint::fromString(s);
|
||||
return StringRef();
|
||||
}
|
||||
static QuotingType mustQuote(StringRef S) { return needsQuotes(S); }
|
||||
|
||||
Reference in New Issue
Block a user