diff options
author | Fangrui Song <i@maskray.me> | 2021-03-10 23:02:51 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-03-10 23:02:51 -0800 |
commit | aeaf705d5eb5b1a6956bbd64949c872a5ecdee22 (patch) | |
tree | 75eab4b1e950c79eecc1bd478f7cea982d0761f7 /llvm/lib/FileCheck/FileCheck.cpp | |
parent | c7712087cbb505d324e1149fa224f607c91a8c6a (diff) | |
download | llvm-aeaf705d5eb5b1a6956bbd64949c872a5ecdee22.zip llvm-aeaf705d5eb5b1a6956bbd64949c872a5ecdee22.tar.gz llvm-aeaf705d5eb5b1a6956bbd64949c872a5ecdee22.tar.bz2 |
[sanitizer] Change NanoTime to use clock_gettime on non-glibc
This avoids the `__NR_gettimeofday` syscall number, which does not exist on 32-bit musl (it has `__NR_gettimeofday_time32`).
This switched Android to `clock_gettime` as well, which should work according to the old code before D96925.
Tested on Alpine Linux x86-64 (musl) and FreeBSD x86-64.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D98121
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions