diff --git a/llvm/include/llvm/ExecutionEngine/Orc/LogicalDylib.h b/llvm/include/llvm/ExecutionEngine/Orc/LogicalDylib.h index f58c089acb44..28700ef347d6 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/LogicalDylib.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/LogicalDylib.h @@ -14,9 +14,6 @@ #ifndef LLVM_EXECUTIONENGINE_ORC_LOGICALDYLIB_H #define LLVM_EXECUTIONENGINE_ORC_LOGICALDYLIB_H -#include "llvm/ADT/iterator.h" -#include "llvm/ADT/Optional.h" - namespace llvm { namespace orc { diff --git a/llvm/tools/lli/OrcLazyJIT.h b/llvm/tools/lli/OrcLazyJIT.h index cd48d5f92471..2919c082420d 100644 --- a/llvm/tools/lli/OrcLazyJIT.h +++ b/llvm/tools/lli/OrcLazyJIT.h @@ -91,11 +91,10 @@ public: auto Resolver = std::shared_ptr( orc::createLambdaResolver( - [this](const std::string &Name) { + [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;