[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/Emitter.cpp

Misha Brukman brukman at cs.uiuc.edu
Wed Sep 10 15:53:03 PDT 2003


Changes in directory llvm/lib/ExecutionEngine/JIT:

Emitter.cpp updated: 1.24 -> 1.25

---
Log message:

* 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


---
Diffs of the changes:

Index: llvm/lib/ExecutionEngine/JIT/Emitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.24 llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.25
--- llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.24	Wed Sep 10 10:09:45 2003
+++ llvm/lib/ExecutionEngine/JIT/Emitter.cpp	Wed Sep 10 15:52:05 2003
@@ -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 {
@@ -40,12 +44,6 @@
     inline void endFunctionBody(unsigned char *FunctionEnd);    
   };
 }
-
-#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.





More information about the llvm-commits mailing list