[ORC] Remove an unused variable.
authorLang Hames <lhames@gmail.com>
Mon, 31 Aug 2020 22:16:03 +0000 (15:16 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 31 Aug 2020 22:35:55 +0000 (15:35 -0700)
The unused Main variable was accidentally left in an earlier commit.

llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp

index 50fa23d..d8283fa 100644 (file)
@@ -71,9 +71,8 @@ public:
     }
 
     // OnResolve -- De-intern the symbols and pass the result to the linker.
-    auto OnResolve = [this, LookupContinuation = std::move(LC)](
-                         Expected<SymbolMap> Result) mutable {
-      auto Main = Layer.getExecutionSession().intern("_main");
+    auto OnResolve = [LookupContinuation =
+                          std::move(LC)](Expected<SymbolMap> Result) mutable {
       if (!Result)
         LookupContinuation->run(Result.takeError());
       else {