summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 88a8be439f..d127708189 100644
--- a/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -91,17 +91,17 @@ JITMemoryManager::JITMemoryManager(bool useGOT) {
ConstantBase = reinterpret_cast<unsigned char*>(ConstBlock.base());
GlobalBase = reinterpret_cast<unsigned char*>(GVBlock.base());
- //Allocate the GOT just like a global array
- GOTBase = NULL;
- if (useGOT)
- GOTBase = allocateGlobal(sizeof(void*) * 8192, 8);
-
// Allocate stubs backwards from the base, allocate functions forward
// from the base.
CurStubPtr = CurFunctionPtr = FunctionBase + 512*1024;// Use 512k for stubs
CurConstantPtr = ConstantBase + ConstBlock.size();
CurGlobalPtr = GlobalBase + GVBlock.size();
+
+ //Allocate the GOT just like a global array
+ GOTBase = NULL;
+ if (useGOT)
+ GOTBase = allocateGlobal(sizeof(void*) * 8192, 8);
}
JITMemoryManager::~JITMemoryManager() {