summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-13 22:38:11 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-13 22:38:11 +0000
commitf7948483d2dccb64f0d7afa820273946429e3304 (patch)
treeeccee279ddbcf7b5c58936b53cecc2ebc3d18f39 /llvm/lib/ExecutionEngine/JIT/Emitter.cpp
parent07369430c4be24444d55a48ca31d01538a680263 (diff)
downloadbcm5719-llvm-f7948483d2dccb64f0d7afa820273946429e3304.tar.gz
bcm5719-llvm-f7948483d2dccb64f0d7afa820273946429e3304.zip
Simplify the sys::Memory interface per Chris' request.
llvm-svn: 16318
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/Emitter.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/Emitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
index 3ce5765cf49..a0e7a946092 100644
--- a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/Emitter.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
OpenPOWER on IntegriCloud