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)
commitcf99fd57090e5630b22da6528ebb518ad381f47d
tree0b93474dd10cb3c89073c74a169108bfa83e8f0e
parent11d0a9f27865e6bf46993aa42e9aec76416f41c7
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.

llvm-svn: 176057
llvm/tools/lli/RecordingMemoryManager.cpp
llvm/tools/lli/RecordingMemoryManager.h