[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)
commit4dedd90c76214ba670e08580471232062f7f096e
tree52f9c13b538950a616efe1d29f289c6d2780a11c
parent587999319a92b39a5903fc1dc57e7af0f37ea74b
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229973 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/JITSymbol.h
include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h