Rewrite JIT handling of GlobalVariables so they
authorDale Johannesen <dalej@apple.com>
Thu, 7 Aug 2008 01:30:15 +0000 (01:30 +0000)
committerDale Johannesen <dalej@apple.com>
Thu, 7 Aug 2008 01:30:15 +0000 (01:30 +0000)
commitdd947ea3c5e020c33c58a31939561265b980a3ad
tree1ed06d324e47916a3ffaecc9f5d8978562c16a56
parent39fd6e81b1b0de8b820155dc6a0dae226c109de6
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
lib/ExecutionEngine/ExecutionEngine.cpp
lib/ExecutionEngine/JIT/JIT.cpp
lib/ExecutionEngine/JIT/JITEmitter.cpp
lib/ExecutionEngine/JIT/JITMemoryManager.cpp