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

Reid Spencer reid at x10sys.com
Mon Sep 13 15:38:24 PDT 2004



Changes in directory llvm/lib/ExecutionEngine/JIT:

Emitter.cpp updated: 1.44 -> 1.45
---
Log message:

Simplify the sys::Memory interface per Chris' request.


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/ExecutionEngine/JIT/Emitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.44 llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.45
--- llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.44	Fri Sep 10 23:31:03 2004
+++ llvm/lib/ExecutionEngine/JIT/Emitter.cpp	Mon Sep 13 17:38:12 2004
@@ -38,7 +38,7 @@
   /// are emitting is.  This never bothers to release the memory, because when
   /// we are ready to destroy the JIT, the program exits.
   class JITMemoryManager {
-    sys::Memory  MemBlock;       // Virtual memory block allocated RWX
+    sys::MemoryBlock  MemBlock;  // Virtual memory block allocated RWX
     unsigned char *MemBase;      // Base of block of memory, start of stub mem
     unsigned char *FunctionBase; // Start of the function body area
     unsigned char *CurStubPtr, *CurFunctionPtr;
@@ -53,7 +53,7 @@
 
 JITMemoryManager::JITMemoryManager() {
   // Allocate a 16M block of memory...
-  sys::Memory::AllocateRWX(MemBlock,(16 << 20));
+  MemBlock = sys::Memory::AllocateRWX((16 << 20));
   MemBase = reinterpret_cast<unsigned char*>(MemBlock.base());
   FunctionBase = MemBase + 512*1024; // Use 512k for stubs
 






More information about the llvm-commits mailing list