[scudo][standalone] Define hasHardwareCRC32 for other archs
authorKostya Kortchinsky <kostyak@google.com>
Mon, 9 Dec 2019 21:06:34 +0000 (13:06 -0800)
committerKostya Kortchinsky <kostyak@google.com>
Tue, 10 Dec 2019 15:41:46 +0000 (07:41 -0800)
commitb36b16372d5f3aa0d1390eeaefd3600595b22e6d
treea14f94afd3116c2ea417d3a7da5c32f98c4dd625
parent396d18aeb6cb4409ed71ff4c331748ce1c530f33
[scudo][standalone] Define hasHardwareCRC32 for other archs

Summary:
The function was only defined for x86 and arm families, which ends
up being an issue for PPC in g3.

Define the function, simply returning `false` for "other"
architectures.

Reviewers: hctim, pcc, cferris, eugenis, vitalybuka

Subscribers: kristof.beyls, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D71223
compiler-rt/lib/scudo/standalone/checksum.cpp