diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-09-11 01:17:24 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-09-11 01:17:24 +0000 |
commit | a699b6a44c2721ecc4ebb7fe4f5ed70cb795a2e9 (patch) | |
tree | 32e887072e66dafdff3555f2b4a2d5538b03ef88 /llvm/lib/Support/Unix/Memory.inc | |
parent | b156b56a282c24d03c541180d9973d8d35fb79a2 (diff) | |
download | bcm5719-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.inc | 8 |
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 |