[llvm-commits] CVS: llvm/tools/lli/JIT/Emitter.cpp Intercept.cpp

John Criswell criswell at cs.uiuc.edu
Mon Jun 30 17:03:13 PDT 2003


Changes in directory llvm/tools/lli/JIT:

Emitter.cpp updated: 1.16 -> 1.17
Intercept.cpp updated: 1.4 -> 1.5

---
Log message:

Merged in autoconf branch.  This provides configuration via the autoconf
system.


---
Diffs of the changes:

Index: llvm/tools/lli/JIT/Emitter.cpp
diff -u llvm/tools/lli/JIT/Emitter.cpp:1.16 llvm/tools/lli/JIT/Emitter.cpp:1.17
--- llvm/tools/lli/JIT/Emitter.cpp:1.16	Mon Jun 30 13:06:20 2003
+++ llvm/tools/lli/JIT/Emitter.cpp	Mon Jun 30 16:59:03 2003
@@ -6,6 +6,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "VM.h"
+#include "Config/sys/mman.h"
 #include "llvm/CodeGen/MachineCodeEmitter.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/CodeGen/MachineConstantPool.h"
@@ -82,7 +83,7 @@
   static unsigned long Counter = 0;
   pa = mmap((void*)(0x140000000UL+Counter), pageSize*NumPages,
             PROT_READ|PROT_WRITE|PROT_EXEC,
-            MAP_PRIVATE|MAP_ANON|MAP_FIXED, -1, 0); /* fd = -1 */
+            MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1, 0); /* fd = -1 */
   Counter += pageSize*NumPages;
 #else
   std::cerr << "This architecture is not supported by the JIT\n";


Index: llvm/tools/lli/JIT/Intercept.cpp
diff -u llvm/tools/lli/JIT/Intercept.cpp:1.4 llvm/tools/lli/JIT/Intercept.cpp:1.5
--- llvm/tools/lli/JIT/Intercept.cpp:1.4	Tue Jun  3 20:57:22 2003
+++ llvm/tools/lli/JIT/Intercept.cpp	Mon Jun 30 16:59:03 2003
@@ -9,7 +9,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "VM.h"
-#include <dlfcn.h>    // dlsym access
+#include "Config/dlfcn.h"    // dlsym access
 #include <iostream>
 
 // AtExitList - List of functions registered with the at_exit function





More information about the llvm-commits mailing list