[llvm] r239645 - [Orc] Tidy up initialization based on review feedback for r239561 from dblaikie.
Lang Hames
lhames at gmail.com
Fri Jun 12 16:13:06 PDT 2015
Author: lhames
Date: Fri Jun 12 18:13:06 2015
New Revision: 239645
URL: http://llvm.org/viewvc/llvm-project?rev=239645&view=rev
Log:
[Orc] Tidy up initialization based on review feedback for r239561 from dblaikie.
NFC.
Modified:
llvm/trunk/tools/lli/OrcLazyJIT.h
Modified: llvm/trunk/tools/lli/OrcLazyJIT.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/OrcLazyJIT.h?rev=239645&r1=239644&r2=239645&view=diff
==============================================================================
--- llvm/trunk/tools/lli/OrcLazyJIT.h (original)
+++ llvm/trunk/tools/lli/OrcLazyJIT.h Fri Jun 12 18:13:06 2015
@@ -88,26 +88,25 @@ public:
// 1) Search the JIT symbols.
// 2) Check for C++ runtime overrides.
// 3) Search the host process (LLI)'s symbol table.
- auto Resolver =
- std::shared_ptr<RuntimeDyld::SymbolResolver>(
- orc::createLambdaResolver(
- [this](const std::string &Name) {
- if (auto Sym = CODLayer.findSymbol(Name, true))
- return RuntimeDyld::SymbolInfo(Sym.getAddress(),
- Sym.getFlags());
- if (auto Sym = CXXRuntimeOverrides.searchOverrides(Name))
- return Sym;
+ std::shared_ptr<RuntimeDyld::SymbolResolver> Resolver =
+ orc::createLambdaResolver(
+ [this](const std::string &Name) {
+ if (auto Sym = CODLayer.findSymbol(Name, true))
+ return RuntimeDyld::SymbolInfo(Sym.getAddress(),
+ Sym.getFlags());
+ if (auto Sym = CXXRuntimeOverrides.searchOverrides(Name))
+ return Sym;
- if (auto Addr =
- RTDyldMemoryManager::getSymbolAddressInProcess(Name))
- return RuntimeDyld::SymbolInfo(Addr, JITSymbolFlags::Exported);
+ if (auto Addr =
+ RTDyldMemoryManager::getSymbolAddressInProcess(Name))
+ return RuntimeDyld::SymbolInfo(Addr, JITSymbolFlags::Exported);
- return RuntimeDyld::SymbolInfo(nullptr);
- },
- [](const std::string &Name) {
- return RuntimeDyld::SymbolInfo(nullptr);
- }
- ));
+ return RuntimeDyld::SymbolInfo(nullptr);
+ },
+ [](const std::string &Name) {
+ return RuntimeDyld::SymbolInfo(nullptr);
+ }
+ );
// Add the module to the JIT.
std::vector<std::unique_ptr<Module>> S;
More information about the llvm-commits
mailing list