[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Mon Aug 1 10:35:52 PDT 2005
Changes in directory llvm/lib/ExecutionEngine/JIT:
JITEmitter.cpp updated: 1.75 -> 1.76
---
Log message:
one cannot allocate a global, until one is done initializing the global pointers
---
Diffs of the changes: (+5 -5)
JITEmitter.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.75 llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.76
--- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.75 Sat Jul 30 13:33:25 2005
+++ llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp Mon Aug 1 12:35:40 2005
@@ -91,17 +91,17 @@
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() {
More information about the llvm-commits
mailing list