[llvm] r324410 - [ORC] Remove some unused lambda captures.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 13:52:47 PST 2018
Author: lhames
Date: Tue Feb 6 13:52:46 2018
New Revision: 324410
URL: http://llvm.org/viewvc/llvm-project?rev=324410&view=rev
Log:
[ORC] Remove some unused lambda captures.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
llvm/trunk/tools/lli/OrcLazyJIT.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h?rev=324410&r1=324409&r2=324410&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h Tue Feb 6 13:52:46 2018
@@ -478,8 +478,8 @@ private:
};
auto GVsResolver = createSymbolResolver(
- [this, &LD, LegacyLookup](SymbolFlagsMap &SymbolFlags,
- const SymbolNameSet &Symbols) {
+ [&LD, LegacyLookup](SymbolFlagsMap &SymbolFlags,
+ const SymbolNameSet &Symbols) {
auto NotFoundViaLegacyLookup =
lookupFlagsWithLegacyFn(SymbolFlags, Symbols, LegacyLookup);
@@ -637,8 +637,8 @@ private:
// Create memory manager and symbol resolver.
auto Resolver = createSymbolResolver(
- [this, &LD, LegacyLookup](SymbolFlagsMap &SymbolFlags,
- const SymbolNameSet &Symbols) {
+ [&LD, LegacyLookup](SymbolFlagsMap &SymbolFlags,
+ const SymbolNameSet &Symbols) {
auto NotFoundViaLegacyLookup =
lookupFlagsWithLegacyFn(SymbolFlags, Symbols, LegacyLookup);
if (!NotFoundViaLegacyLookup) {
Modified: llvm/trunk/tools/lli/OrcLazyJIT.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/OrcLazyJIT.h?rev=324410&r1=324409&r2=324410&view=diff
==============================================================================
--- llvm/trunk/tools/lli/OrcLazyJIT.h (original)
+++ llvm/trunk/tools/lli/OrcLazyJIT.h Tue Feb 6 13:52:46 2018
@@ -148,7 +148,7 @@ public:
};
auto LegacyLookup =
- [this, LegacyLookupInDylib](const std::string &Name) -> JITSymbol {
+ [LegacyLookupInDylib](const std::string &Name) -> JITSymbol {
if (auto Sym = LegacyLookupInDylib(Name))
return Sym;
else if (auto Err = Sym.takeError())
@@ -163,8 +163,8 @@ public:
auto K = ES.allocateVModule();
assert(!Resolvers.count(K) && "Resolver already present");
Resolvers[K] = orc::createSymbolResolver(
- [this, LegacyLookupInDylib](orc::SymbolFlagsMap &SymbolFlags,
- const orc::SymbolNameSet &Symbols) {
+ [LegacyLookupInDylib](orc::SymbolFlagsMap &SymbolFlags,
+ const orc::SymbolNameSet &Symbols) {
auto NotFoundViaLegacyLookup = lookupFlagsWithLegacyFn(
SymbolFlags, Symbols, LegacyLookupInDylib);
if (!NotFoundViaLegacyLookup) {
More information about the llvm-commits
mailing list