diff options
| author | Lang Hames <lhames@gmail.com> | 2019-02-21 16:53:04 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2019-02-21 16:53:04 +0000 |
| commit | ddf91af5a67bef9ca7a6f14277420e8d2dc0c66e (patch) | |
| tree | f32ecf201b7116993438cee78b1ec375c53f3f8b | |
| parent | 52d5781c8711c334c48f48ffdd1211331ce3a573 (diff) | |
| download | bcm5719-llvm-ddf91af5a67bef9ca7a6f14277420e8d2dc0c66e.tar.gz bcm5719-llvm-ddf91af5a67bef9ca7a6f14277420e8d2dc0c66e.zip | |
[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.
llvm-svn: 354598
| -rw-r--r-- | llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h index a2b0fee0ef9..162dcfed989 100644 --- a/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h @@ -46,7 +46,7 @@ public: : Resolver(createLegacyLookupResolver( ES, [this](const std::string &Name) { - return ObjectLayer.findSymbol(Name, true); + return findMangledSymbol(Name); }, [](Error Err) { cantFail(std::move(Err), "lookupFlags failed"); })), TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()), |

