[llvm] b79e19e - [ORC] Remove an unused variable.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 15:36:51 PDT 2020


Author: Lang Hames
Date: 2020-08-31T15:35:55-07:00
New Revision: b79e19e6d6d70c33c6375dfa134e252f1bc60286

URL: https://github.com/llvm/llvm-project/commit/b79e19e6d6d70c33c6375dfa134e252f1bc60286
DIFF: https://github.com/llvm/llvm-project/commit/b79e19e6d6d70c33c6375dfa134e252f1bc60286.diff

LOG: [ORC] Remove an unused variable.

The unused Main variable was accidentally left in an earlier commit.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
index 50fa23d2f80f..d8283fa7e346 100644
--- a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
@@ -71,9 +71,8 @@ class ObjectLinkingLayerJITLinkContext final : public JITLinkContext {
     }
 
     // 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 {


        


More information about the llvm-commits mailing list