llvm-6502/include/llvm/ExecutionEngine
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
..
Orc [Orc] Add missing #include. Hopefully this will appease the modules buildbots. 2015-03-30 04:02:55 +00:00
ExecutionEngine.h [ExecutionEngine] Fix MCJIT::addGlobalMapping. 2015-03-31 20:31:14 +00:00
GenericValue.h Add support for vector data types in the LLVM interpreter. 2013-04-01 15:53:30 +00:00
Interpreter.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
JITEventListener.h [MCJIT] Replace JITEventListener::anchor (temporarily removed in r222861), and 2014-11-27 01:41:16 +00:00
JITSymbolFlags.h [Orc][MCJIT][RuntimeDyld] Re-apply r231726 and r231724 with fix suggested by 2015-03-11 00:43:26 +00:00
MCJIT.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
ObjectCache.h Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
ObjectMemoryBuffer.h [Orc] New JIT APIs. 2015-01-23 21:25:00 +00:00
OProfileWrapper.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
OrcMCJITReplacement.h [Orc] New JIT APIs. 2015-01-23 21:25:00 +00:00
RTDyldMemoryManager.h [MCJIT][Orc] Refactor RTDyldMemoryManager, weave RuntimeDyld::SymbolInfo through 2015-03-30 03:37:06 +00:00
RuntimeDyld.h [MCJIT][Orc] Refactor RTDyldMemoryManager, weave RuntimeDyld::SymbolInfo through 2015-03-30 03:37:06 +00:00
RuntimeDyldChecker.h [Orc][MCJIT][RuntimeDyld] Re-apply r231726 and r231724 with fix suggested by 2015-03-11 00:43:26 +00:00
SectionMemoryManager.h [MCJIT][Orc] Refactor RTDyldMemoryManager, weave RuntimeDyld::SymbolInfo through 2015-03-30 03:37:06 +00:00