[Support] Use zx_cache_flush on Fuchsia to flush instruction cache
authorPetr Hosek <phosek@chromium.org>
Wed, 6 Jun 2018 06:26:18 +0000 (06:26 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 6 Jun 2018 06:26:18 +0000 (06:26 +0000)
commitfc9b29bd617922a9c6fc3b602e075b353f5c2395
tree77e61283544cbaddf330de5d8aa4b3618c32edaf
parenta7d25d5934409cdf5ef00b10cb3216bc338a88e2
[Support] Use zx_cache_flush on Fuchsia to flush instruction cache

Fuchsia doesn't use __clear_cache, instead it provide zx_cache_flush
system call. Use it to flush instruction cache.

Differential Revision: https://reviews.llvm.org/D47753

llvm-svn: 334068
llvm/lib/Support/Unix/Memory.inc