[PATCH] D61768: [compiler-rt] Migrate to _zx_clock_get_new/_zx_clock_get_monotonic
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 16:07:23 PDT 2019
phosek created this revision.
phosek added reviewers: mcgrathr, juliehockett, jakehehrlich, leonardchan.
Herald added subscribers: llvm-commits, Sanitizers, dberris, kubamracek.
Herald added projects: LLVM, Sanitizers.
This is part of the soft-transition to the new _zx_clock_get signature.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D61768
Files:
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
Index: compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
+++ compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -46,9 +46,9 @@
return 0;
}
-u64 NanoTime() { return _zx_clock_get(ZX_CLOCK_UTC); }
+u64 NanoTime() { return _zx_clock_get_new(ZX_CLOCK_UTC); }
-u64 MonotonicNanoTime() { return _zx_clock_get(ZX_CLOCK_MONOTONIC); }
+u64 MonotonicNanoTime() { return _zx_clock_get_monotonic(); }
uptr internal_getpid() {
zx_info_handle_basic_t info;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61768.198934.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190509/1d847bbb/attachment.bin>
More information about the llvm-commits
mailing list