diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2003-09-10 20:52:05 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-09-10 20:52:05 +0000 |
| commit | 93d0ffb8648b8c03d38f64f2141f17474ec7aeda (patch) | |
| tree | 9f9067f2986ba79c51d4d18b0e2c9a4677d7d9b8 /llvm/lib/ExecutionEngine/JIT | |
| parent | 2158052ac460e4e0559b57dfdac76079c4c49485 (diff) | |
| download | bcm5719-llvm-93d0ffb8648b8c03d38f64f2141f17474ec7aeda.tar.gz bcm5719-llvm-93d0ffb8648b8c03d38f64f2141f17474ec7aeda.zip | |
* 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
llvm-svn: 8463
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/Emitter.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp index 59e7eba4be1..637b1058931 100644 --- a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp @@ -6,8 +6,10 @@ //===----------------------------------------------------------------------===// #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" @@ -15,6 +17,8 @@ #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 { @@ -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 // mapped as executable readable and writable. static void *getMemory(unsigned NumBytes) { |

