aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-08-07 01:30:15 +0000
committerDale Johannesen <dalej@apple.com>2008-08-07 01:30:15 +0000
commit0ba4a0eb0700007d598e1f778872d85435b8670f (patch)
tree1ed06d324e47916a3ffaecc9f5d8978562c16a56 /lib/ExecutionEngine/ExecutionEngine.cpp
parent61828a851435cf03ce60b1f3c66f6b062f063637 (diff)
downloadexternal_llvm-0ba4a0eb0700007d598e1f778872d85435b8670f.tar.gz
external_llvm-0ba4a0eb0700007d598e1f778872d85435b8670f.tar.bz2
external_llvm-0ba4a0eb0700007d598e1f778872d85435b8670f.zip
Rewrite JIT handling of GlobalVariables so they
are allocated in the same buffer as the code, jump tables, etc. The default JIT memory manager does not handle buffer overflow well. I didn't introduce this and I'm not attempting to fix it here, but it is more likely to be hit now since we're putting more stuff in the buffer. This affects one test that I know of so far, MultiSource/Benchmarks/NPB-serial/is. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index 94136d54af..b3dfe01069 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -819,6 +819,8 @@ void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
// specified memory location...
//
void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) {
+ DOUT << "Initializing " << Addr;
+ DEBUG(Init->dump());
if (isa<UndefValue>(Init)) {
return;
} else if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) {