[PATCH] D42617: [sanitizer] Update from zx_time_get to zx_clock_get

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 27 15:39:43 PST 2018


phosek created this revision.
phosek added reviewers: mcgrathr, jakehehrlich, aarongreen, juliehockett.
Herald added subscribers: Sanitizers, llvm-commits, kubamracek.

This Zircon syscall was renamed.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D42617

Files:
  lib/sanitizer_common/sanitizer_fuchsia.cc


Index: lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- lib/sanitizer_common/sanitizer_fuchsia.cc
+++ lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -49,9 +49,9 @@
   return 0;
 }
 
-u64 NanoTime() { return _zx_time_get(ZX_CLOCK_UTC); }
+u64 NanoTime() { return _zx_clock_get(ZX_CLOCK_UTC); }
 
-u64 MonotonicNanoTime() { return _zx_time_get(ZX_CLOCK_MONOTONIC); }
+u64 MonotonicNanoTime() { return _zx_clock_get(ZX_CLOCK_MONOTONIC); }
 
 uptr internal_getpid() {
   zx_info_handle_basic_t info;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42617.131694.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180127/707e83f4/attachment.bin>


More information about the llvm-commits mailing list