diff options
author | Dale Johannesen <dalej@apple.com> | 2008-08-07 01:30:15 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-08-07 01:30:15 +0000 |
commit | dd947ea3c5e020c33c58a31939561265b980a3ad (patch) | |
tree | 1ed06d324e47916a3ffaecc9f5d8978562c16a56 /lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 39fd6e81b1b0de8b820155dc6a0dae226c109de6 (diff) |
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.cpp | 2 |
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)) { |