mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:29:58 +00:00
[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
This commit is contained in:
parent
d23e0bcdb9
commit
b18fd4d14d
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user