Index: examples/HowToUseJIT/HowToUseJIT.cpp =================================================================== --- examples/HowToUseJIT/HowToUseJIT.cpp +++ examples/HowToUseJIT/HowToUseJIT.cpp @@ -37,6 +37,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/GenericValue.h" +#include "llvm/ExecutionEngine/Interpreter.h" #include "llvm/IR/Argument.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Constants.h" Index: examples/Kaleidoscope/Chapter4/CMakeLists.txt =================================================================== --- examples/Kaleidoscope/Chapter4/CMakeLists.txt +++ examples/Kaleidoscope/Chapter4/CMakeLists.txt @@ -2,6 +2,7 @@ Analysis Core ExecutionEngine + Interpreter InstCombine Object OrcJIT Index: examples/Kaleidoscope/Chapter5/CMakeLists.txt =================================================================== --- examples/Kaleidoscope/Chapter5/CMakeLists.txt +++ examples/Kaleidoscope/Chapter5/CMakeLists.txt @@ -2,6 +2,7 @@ Analysis Core ExecutionEngine + Interpreter InstCombine Object OrcJIT Index: examples/Kaleidoscope/Chapter6/CMakeLists.txt =================================================================== --- examples/Kaleidoscope/Chapter6/CMakeLists.txt +++ examples/Kaleidoscope/Chapter6/CMakeLists.txt @@ -2,6 +2,7 @@ Analysis Core ExecutionEngine + Interpreter InstCombine Object OrcJIT Index: examples/Kaleidoscope/Chapter7/CMakeLists.txt =================================================================== --- examples/Kaleidoscope/Chapter7/CMakeLists.txt +++ examples/Kaleidoscope/Chapter7/CMakeLists.txt @@ -2,6 +2,7 @@ Analysis Core ExecutionEngine + Interpreter InstCombine Object OrcJIT Index: examples/Kaleidoscope/Chapter9/CMakeLists.txt =================================================================== --- examples/Kaleidoscope/Chapter9/CMakeLists.txt +++ examples/Kaleidoscope/Chapter9/CMakeLists.txt @@ -1,6 +1,7 @@ set(LLVM_LINK_COMPONENTS Core ExecutionEngine + Interpreter Object OrcJIT Support Index: examples/Kaleidoscope/include/KaleidoscopeJIT.h =================================================================== --- examples/Kaleidoscope/include/KaleidoscopeJIT.h +++ examples/Kaleidoscope/include/KaleidoscopeJIT.h @@ -24,6 +24,7 @@ #include "llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h" #include "llvm/ExecutionEngine/RTDyldMemoryManager.h" #include "llvm/ExecutionEngine/SectionMemoryManager.h" +#include "llvm/ExecutionEngine/Interpreter.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/Mangler.h" #include "llvm/Support/DynamicLibrary.h" @@ -47,7 +48,7 @@ : Resolver(createLegacyLookupResolver( ES, [this](const std::string &Name) { - return ObjectLayer.findSymbol(Name, true); + return ObjectLayer.findSymbol(Name, false); }, [](Error Err) { cantFail(std::move(Err), "lookupFlags failed"); })), TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()),