diff options
author | Kazu Hirata <kazu@google.com> | 2023-01-28 15:22:37 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-01-28 15:22:37 -0800 |
commit | f6b8f05bb399e8f5fd176b2c9dd383cd029467f1 (patch) | |
tree | 44464725d41404c5a2ccf5694583bc41ff718da1 /lld/COFF | |
parent | 02a52b7306026f9d5eb42267d7261974dea1a9ba (diff) | |
download | llvm-f6b8f05bb399e8f5fd176b2c9dd383cd029467f1.tar.gz |
Use llvm::byteswap instead of ByteSwap_{16,32,64} (NFC)
Diffstat (limited to 'lld/COFF')
-rw-r--r-- | lld/COFF/DebugTypes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/COFF/DebugTypes.cpp b/lld/COFF/DebugTypes.cpp index 7bbce84b2d54..95d4e53bb770 100644 --- a/lld/COFF/DebugTypes.cpp +++ b/lld/COFF/DebugTypes.cpp @@ -1021,7 +1021,8 @@ uint32_t GHashTable::insert(COFFLinkerContext &ctx, GloballyHashedType ghash, // type records are. Swap the byte order for better entropy. A better ghash // won't need this. uint32_t startIdx = - ByteSwap_64(*reinterpret_cast<uint64_t *>(&ghash)) % tableSize; + llvm::byteswap<uint64_t>(*reinterpret_cast<uint64_t *>(&ghash)) % + tableSize; // Do a linear probe starting at startIdx. uint32_t idx = startIdx; |