Provide workaround for PR 15130.
authorAndrew Kaylor <andrew.kaylor@intel.com>
Mon, 25 Feb 2013 23:00:19 +0000 (23:00 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Mon, 25 Feb 2013 23:00:19 +0000 (23:00 +0000)
commitb90cc2fa0b50321e32786e87f8425658d88982ee
treec21b70a3a125a559b61ab3cd9830416e5de5ab55
parentffa1dbadaf73d5b80a2bdf421c16cba29aea80a3
Provide workaround for PR 15130.

This changes the RecordingMemoryManager in lli to use mapped memory rather than malloc to allocate memory for sections and uses a 'near' MemoryBlock to keep the allocations together.  This works around a problem in MCJIT where relocations are applied to a generated image immediately oupon generation, which isn't appropriate for the remote case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176057 91177308-0d34-0410-b5e6-96231b3b80d8
tools/lli/RecordingMemoryManager.cpp
tools/lli/RecordingMemoryManager.h