[lld/mac] On Apple systems, call CC_SHA256 from libSystem
authorNico Weber <thakis@chromium.org>
Tue, 21 Jun 2022 17:49:26 +0000 (13:49 -0400)
committerNico Weber <thakis@chromium.org>
Tue, 21 Jun 2022 18:58:04 +0000 (14:58 -0400)
commit858e8b17f73652f9b79a8fd409b1f873c50ecd53
treeed90316c514a1ca0309c716e0a8a9366fdb11d9c
parent27e4afcea71818ef2ceb0be109321b9595a8fba2
[lld/mac] On Apple systems, call CC_SHA256 from libSystem

It's in libSystem, so it doesn't bring in any new deps, and it's
currently much faster than LLVM's current SHA256 implementation.

Makes linking (arm64) Chromium Framework with ld64.lld 17% faster.
See also PR56121.

No behavior change.

Differential Revision: https://reviews.llvm.org/D128290
lld/MachO/SyntheticSections.cpp