summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Memory.inc
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-09-11 01:17:24 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-09-11 01:17:24 +0000
commita699b6a44c2721ecc4ebb7fe4f5ed70cb795a2e9 (patch)
tree32e887072e66dafdff3555f2b4a2d5538b03ef88 /llvm/lib/Support/Unix/Memory.inc
parentb156b56a282c24d03c541180d9973d8d35fb79a2 (diff)
downloadbcm5719-llvm-a699b6a44c2721ecc4ebb7fe4f5ed70cb795a2e9.tar.gz
bcm5719-llvm-a699b6a44c2721ecc4ebb7fe4f5ed70cb795a2e9.zip
Add support for finding cacheflush on OpenBSD/mips64 platforms.
Patch by Brad Smith! llvm-svn: 163584
Diffstat (limited to 'llvm/lib/Support/Unix/Memory.inc')
-rw-r--r--llvm/lib/Support/Unix/Memory.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc
index 5a57a287063..2e301f62f2b 100644
--- a/llvm/lib/Support/Unix/Memory.inc
+++ b/llvm/lib/Support/Unix/Memory.inc
@@ -23,6 +23,14 @@
#include <mach/mach.h>
#endif
+#if defined(__mips__)
+# if defined(__OpenBSD__)
+# include <mips64/sysarch.h>
+# else
+# include <sys/cachectl.h>
+# endif
+#endif
+
/// AllocateRWX - Allocate a slab of memory with read/write/execute
/// permissions. This is typically used for JIT applications where we want
/// to emit code to the memory then jump to it. Getting this type of memory
OpenPOWER on IntegriCloud