forked from OSchip/llvm-project
Add support for finding cacheflush on OpenBSD/mips64 platforms.
Patch by Brad Smith! llvm-svn: 163584
This commit is contained in:
parent
b156b56a28
commit
a699b6a44c
|
@ -16,10 +16,6 @@
|
|||
#include "llvm/Support/Valgrind.h"
|
||||
#include "llvm/Config/config.h"
|
||||
|
||||
#if defined(__mips__)
|
||||
#include <sys/cachectl.h>
|
||||
#endif
|
||||
|
||||
namespace llvm {
|
||||
using namespace sys;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue