mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
* Move include files from middle of file to the top where they belong, moving
the #define up there too * Since we're including system headers, use the ones in include/llvm/Config * While we're here, use the canonical LLVM header ordering algorithm git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
545a76ced8
commit
36d10ef7e7
@ -6,8 +6,10 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "jit"
|
#define DEBUG_TYPE "jit"
|
||||||
|
#ifndef _POSIX_MAPPED_FILES
|
||||||
|
#define _POSIX_MAPPED_FILES
|
||||||
|
#endif
|
||||||
#include "VM.h"
|
#include "VM.h"
|
||||||
#include "Config/sys/mman.h"
|
|
||||||
#include "llvm/CodeGen/MachineCodeEmitter.h"
|
#include "llvm/CodeGen/MachineCodeEmitter.h"
|
||||||
#include "llvm/CodeGen/MachineFunction.h"
|
#include "llvm/CodeGen/MachineFunction.h"
|
||||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||||
@ -15,6 +17,8 @@
|
|||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "Support/Debug.h"
|
#include "Support/Debug.h"
|
||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
|
#include "Config/unistd.h"
|
||||||
|
#include "Config/sys/mman.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -41,12 +45,6 @@ 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
|
// getMemory - Return a pointer to the specified number of bytes, which is
|
||||||
// mapped as executable readable and writable.
|
// mapped as executable readable and writable.
|
||||||
static void *getMemory(unsigned NumBytes) {
|
static void *getMemory(unsigned NumBytes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user