OSDN Git Service

[compiler-rt santizer] Use clock_gettime instead of timespec_get
authorJeroen Dobbelaere <jeroen.dobbelaere@synopsys.com>
Tue, 8 Dec 2020 16:33:14 +0000 (08:33 -0800)
committerTeresa Johnson <tejohnson@google.com>
Tue, 8 Dec 2020 18:10:17 +0000 (10:10 -0800)
commitd7e71b5db8427309ad12249633ea86cccdc5a701
tree199669c0d4a05ab241f0169551e85cea896c50fb
parent5f18e2f31ecbda5ace100cd2925ef7a0cafe3c3b
[compiler-rt santizer] Use clock_gettime instead of timespec_get

On RH66, timespec_get is not available. Use clock_gettime instead.

This problem was introduced with D87120

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D91687
compiler-rt/lib/memprof/memprof_allocator.cpp
compiler-rt/lib/memprof/memprof_rtl.cpp