[Orc] Add a new JITSymbol constructor to build a symbol from an existing address.
authorLang Hames <lhames@gmail.com>
Fri, 20 Feb 2015 06:48:29 +0000 (06:48 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 20 Feb 2015 06:48:29 +0000 (06:48 +0000)
commit02be3f36a392de4dfa66a7d3bbc577a3300ad5c9
tree17abde2f9a94c3f465b55edeb388b250a049e2ca
parenta46d5a7438af9b2dd8e391664b709d48b5f6fbb3
[Orc] Add a new JITSymbol constructor to build a symbol from an existing address.

This constructor is more efficient for symbols that have already been emitted,
since it avoids the construction/execution of a std::function.

Update the ObjectLinkingLayer to use this new constructor where possible.

llvm-svn: 229973
llvm/include/llvm/ExecutionEngine/Orc/JITSymbol.h
llvm/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h