llvm.org GIT mirror llvm / ede8818
[Kaleidoscope] Fix symbol resolver to search in reverse order. This should allow more recent definitions of functions in the Kaleidoscope REPL to override old ones, as the tutorial text promises. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354598 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 4 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4545 : Resolver(createLegacyLookupResolver(
4646 ES,
4747 [this](const std::string &Name) {
48 return ObjectLayer.findSymbol(Name, true);
48 return findMangledSymbol(Name);
4949 },
5050 [](Error Err) { cantFail(std::move(Err), "lookupFlags failed"); })),
5151 TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()),