diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-10-02 19:26:16 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-10-02 19:26:16 +0000 |
commit | b47c0108b3053e36599aec5b3313ea89608ae90a (patch) | |
tree | 5eee6aea7bc9c468e8134a5be58495c631ce258c /tools | |
parent | 6623d050c6f4351293bc1849e49bc0e37ec04596 (diff) | |
download | external_llvm-b47c0108b3053e36599aec5b3313ea89608ae90a.zip external_llvm-b47c0108b3053e36599aec5b3313ea89608ae90a.tar.gz external_llvm-b47c0108b3053e36599aec5b3313ea89608ae90a.tar.bz2 |
Fix build problems with remote lli implementation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lli/ChildTarget/Unix/ChildTarget.inc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/lli/ChildTarget/Unix/ChildTarget.inc b/tools/lli/ChildTarget/Unix/ChildTarget.inc index 9550e50..cd42f34 100644 --- a/tools/lli/ChildTarget/Unix/ChildTarget.inc +++ b/tools/lli/ChildTarget/Unix/ChildTarget.inc @@ -15,7 +15,28 @@ #include <unistd.h> #include <stdio.h> #include <stdlib.h> + +#ifdef HAVE_SYS_MMAN_H #include <sys/mman.h> +#endif + +#ifdef __APPLE__ +#include <mach/mach.h> +#endif + +#if defined(__mips__) +# if defined(__OpenBSD__) +# include <mips64/sysarch.h> +# else +# include <sys/cachectl.h> +# endif +#endif + +#ifdef __APPLE__ +extern "C" void sys_icache_invalidate(const void *Addr, size_t len); +#else +extern "C" void __clear_cache(void *, void*); +#endif namespace { |