[Support] Automatically support `hash_value` when `HashBuilder` support is available.
authorAlexandre Rames <arames@apple.com>
Tue, 7 Sep 2021 16:42:46 +0000 (09:42 -0700)
committerAlexandre Rames <arames@apple.com>
Tue, 7 Sep 2021 16:56:11 +0000 (09:56 -0700)
commitc3c9312f7049e8a9b1bf05db877b4b39df897416
tree08d4bdb5cb242052697c63e9fd18fa66da6552f5
parente6597dbae84034ce8ef97802584039b723adb526
[Support] Automatically support `hash_value` when `HashBuilder` support is available.

Use the `HBuilder` interface to provide default implementations of `llvm::hash_value`.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D109024
llvm/include/llvm/Support/HashBuilder.h
llvm/unittests/ADT/HashingTest.cpp