llvm-6502/lib
Lang Hames 83b5f345b2 [ExecutionEngine] Fix MCJIT::addGlobalMapping.
This patch fixes MCJIT::addGlobalMapping by changing the implementation of the
ExecutionEngineState class. The new implementation maintains a bidirectional
mapping between symbol names (std::strings) and addresses (uint64_ts), rather
than a mapping between Value*s and void*s.

This has fix has been made for backwards compatibility, however the strongly
preferred way to resolve unknown symbols is by writing a custom
RuntimeDyld::SymbolResolver (formerly RTDyldMemoryManager) and overriding the
findSymbol method. The addGlobalMapping method is a hangover from the legacy JIT
(which has was removed in 3.6), and may be deprecated in a future release as
part of a clean-up of the ExecutionEngine interface.

Patch by Murat Bolat. Thanks Murat!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233747 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-31 20:31:14 +00:00
..
Analysis [WinEH] Run cleanup handlers when an exception is thrown 2015-03-30 22:58:10 +00:00
AsmParser Verifier: Move more debug info checks away from Verify() 2015-03-31 01:28:22 +00:00
Bitcode Fix PR23045. 2015-03-30 21:36:43 +00:00
CodeGen RegAllocGreedy: Allow target to specify register class ordering. 2015-03-31 19:57:53 +00:00
DebugInfo
ExecutionEngine [ExecutionEngine] Fix MCJIT::addGlobalMapping. 2015-03-31 20:31:14 +00:00
Fuzzer [fuzzer] Add support for token-based fuzzing (e.g. for C++). Allow string flags. 2015-03-31 20:13:20 +00:00
IR Verifier: Don't return early from verifyTypeRefs() 2015-03-31 02:37:13 +00:00
IRReader
LineEditor
Linker Reapply "Linker: Drop function pointers for overridden subprograms" 2015-03-26 18:35:30 +00:00
LTO Remove more superfluous .str() and replace std::string concatenation with Twine. 2015-03-30 15:42:36 +00:00
MC Make llc use getHostCPUFeatures when 'native' is specified for cpu. 2015-03-31 05:52:57 +00:00
Object Remove more superfluous .str() and replace std::string concatenation with Twine. 2015-03-30 15:42:36 +00:00
Option Remove more superfluous .str() and replace std::string concatenation with Twine. 2015-03-30 15:42:36 +00:00
Passes
ProfileData
Support [X86] Stop changing result of getHostCPUName based on whether the processor supports AVX. getHostCPUFeatures should be used instead to determine whether to support AVX. 2015-03-31 06:18:31 +00:00
TableGen
Target [Hexagon] Avoid an unused variable warning when assertions are off 2015-03-31 19:43:47 +00:00
Transforms [opaque pointer type] Change GetElementPtrInst::getIndexedType to take the pointee type 2015-03-30 21:41:43 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile