[llvm] r191848 - Fix build problems with remote lli implementation

Andrew Kaylor andrew.kaylor at intel.com
Wed Oct 2 12:26:16 PDT 2013


Author: akaylor
Date: Wed Oct  2 14:26:16 2013
New Revision: 191848

URL: http://llvm.org/viewvc/llvm-project?rev=191848&view=rev
Log:
Fix build problems with remote lli implementation

Modified:
    llvm/trunk/tools/lli/ChildTarget/Unix/ChildTarget.inc

Modified: llvm/trunk/tools/lli/ChildTarget/Unix/ChildTarget.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/ChildTarget/Unix/ChildTarget.inc?rev=191848&r1=191847&r2=191848&view=diff
==============================================================================
--- llvm/trunk/tools/lli/ChildTarget/Unix/ChildTarget.inc (original)
+++ llvm/trunk/tools/lli/ChildTarget/Unix/ChildTarget.inc Wed Oct  2 14:26:16 2013
@@ -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 {
 





More information about the llvm-commits mailing list