summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/CodeGen/ExpandISelPseudos.cpp
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2015-07-21 15:08:13 +0000
committered <ed@FreeBSD.org>2015-07-21 15:08:13 +0000
commit5f08ac18d237b01234affc94c71a78cb1389bf71 (patch)
tree160827ce8d16a1bc0a1550316224ca86732ab609 /contrib/llvm/lib/CodeGen/ExpandISelPseudos.cpp
parent72e5c0c25878eb5e3bef9dbd9427e2c6e569e424 (diff)
downloadFreeBSD-src-5f08ac18d237b01234affc94c71a78cb1389bf71.zip
FreeBSD-src-5f08ac18d237b01234affc94c71a78cb1389bf71.tar.gz
Make clock_gettime() and clock_getres() work for CloudABI programs.
Though the standard C library uses a 'struct timespec' using a 64-bit 'time_t', there is no need to use such a type at the system call level. CloudABI uses a simple 64-bit unsigned timestamp in nanoseconds. This is sufficient to express any time value from 1970 to 2554. The CloudABI low-level interface also supports fetching timestamp values with a lower precision. Instead of overloading the clock ID argument for this purpose, the system call provides a precision argument that may be used to specify the maximum slack. The current system call implementation does not use this information, but it's good to already have this available. Expose cloudabi_convert_timespec(), as we're going to need this for fstat() as well. Obtained from: https://github.com/NuxiNL/freebsd
Diffstat (limited to 'contrib/llvm/lib/CodeGen/ExpandISelPseudos.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud