summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-07-31 18:04:58 +0000
committerRui Ueyama <ruiu@google.com>2018-07-31 18:04:58 +0000
commit7f97570e79fffc25e204617714be2355f4af4c47 (patch)
tree2b54b2e389ba22e40c064f76919851fa0e37e374 /llvm/lib/Support
parent1f6fb8d06394961049e48f7f16ce81538e38b778 (diff)
downloadbcm5719-llvm-7f97570e79fffc25e204617714be2355f4af4c47.tar.gz
bcm5719-llvm-7f97570e79fffc25e204617714be2355f4af4c47.zip
Make ICF log output order deterministic.
This patch does the same thing as r338153 for COFF. Note that this patch affects only the order of log messages. The output file is already deterministic. Differential Revision: https://reviews.llvm.org/D50023 llvm-svn: 338406
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/xxhash.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/xxhash.cpp b/llvm/lib/Support/xxhash.cpp
index df643f9bd63..e9dceed2c4a 100644
--- a/llvm/lib/Support/xxhash.cpp
+++ b/llvm/lib/Support/xxhash.cpp
@@ -132,3 +132,7 @@ uint64_t llvm::xxHash64(StringRef Data) {
return H64;
}
+
+uint64_t llvm::xxHash64(ArrayRef<uint8_t> Data) {
+ return xxHash64({(const char *)Data.data(), Data.size()});
+}
OpenPOWER on IntegriCloud