//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "jit"
+#ifndef _POSIX_MAPPED_FILES
+#define _POSIX_MAPPED_FILES
+#endif
#include "VM.h"
-#include "Config/sys/mman.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/Module.h"
#include "Support/Debug.h"
#include "Support/Statistic.h"
+#include "Config/unistd.h"
+#include "Config/sys/mman.h"
#include <stdio.h>
namespace {
};
}
-#ifndef _POSIX_MAPPED_FILES
-#define _POSIX_MAPPED_FILES
-#endif
-#include <unistd.h>
-#include <sys/mman.h>
-
// getMemory - Return a pointer to the specified number of bytes, which is
// mapped as executable readable and writable.
static void *getMemory(unsigned NumBytes) {