diff options
author | Ed Schouten <ed@nuxi.nl> | 2015-05-14 20:54:18 +0000 |
---|---|---|
committer | Ed Schouten <ed@nuxi.nl> | 2015-05-14 20:54:18 +0000 |
commit | 4f0f708bf1a6f2604ce15929ad4deb10f462a85f (patch) | |
tree | 272468a6cbf2617551503649c52c30880cc85ebc /clang/lib/Sema/MultiplexExternalSemaSource.cpp | |
parent | 4936030ed38ff30852e056927a29df854105bcf8 (diff) | |
download | llvm-4f0f708bf1a6f2604ce15929ad4deb10f462a85f.zip llvm-4f0f708bf1a6f2604ce15929ad4deb10f462a85f.tar.gz llvm-4f0f708bf1a6f2604ce15929ad4deb10f462a85f.tar.bz2 |
Use clock_gettime()'s CLOCK_REALTIME instead of gettimeofday().
The system_clock::now() function currently uses gettimeofday(). The
problem with gettimeofday() is that it is an obsolete XSI function,
hence unavailable on CloudABI. See:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/gettimeofday.html
Change this code to use clock_gettime() with CLOCK_REALTIME instead,
which is more consistent, as clock_gettime() is already used for
steady_clock.
A previous version of this change actually attempted to change
system_clock::duration, but I reverted this part as it breaks the
existing ABI.
Differential Revision: http://reviews.llvm.org/D8253
Approved by: jroelofs
llvm-svn: 237390
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
0 files changed, 0 insertions, 0 deletions