diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-09-13 22:38:11 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-09-13 22:38:11 +0000 |
commit | 33189e787b98c79bd03be466ec19dfb2f65eb65f (patch) | |
tree | 5a89a9849c359508b329a3cdf9876b33eae45d5d /lib/ExecutionEngine/JIT/JITEmitter.cpp | |
parent | 2565943289cf53ff1b8dd1dfa13b6068e4d31681 (diff) |
Simplify the sys::Memory interface per Chris' request.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JITEmitter.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 3ce5765cf4..a0e7a94609 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -38,7 +38,7 @@ namespace { /// 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 @@ namespace { 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 |