OSDN Git Service

[MCJIT] Fix some inconsistent handling of name mangling inside MCJIT.
authorLang Hames <lhames@gmail.com>
Mon, 12 Sep 2016 17:19:24 +0000 (17:19 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 12 Sep 2016 17:19:24 +0000 (17:19 +0000)
commitc12323739a713d48928386b4d15629f05a219633
treecc9d9a397d007a391bbe8e9d3f83148a4972d8cb
parent7ee831747ce43cf82de2d4ffe8bcbf2af8ebe8f2
[MCJIT] Fix some inconsistent handling of name mangling inside MCJIT.

This patch moves symbol mangling from findSymbol to getSymbolAddress. The
findSymbol, findExistingSymbol and findModuleForSymbol methods now always take
a mangled name, allowing the 'demangle-and-retry' cruft to be removed from
findSymbol. See http://llvm.org/PR28699 for details.

Patch by James Holderness. Thanks very much James!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281238 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/ExecutionEngine/MCJIT/MCJIT.h