mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[Orc][Kaleidoscope] Fix a missed symbol mangling operation in the fully lazy tutorial.
llvm-svn: 230664
This commit is contained in:
parent
5cc8afebfd
commit
c757b55fe4
@ -1223,6 +1223,10 @@ public:
|
||||
return findSymbol(mangle(Name));
|
||||
}
|
||||
|
||||
JITSymbol findUnmangledSymbolIn(ModuleHandleT H, const std::string &Name) {
|
||||
return findSymbolIn(H, mangle(Name));
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
// This method searches the FunctionDefs map for a definition of 'Name'. If it
|
||||
@ -1284,7 +1288,7 @@ private:
|
||||
std::shared_ptr<FunctionAST> Fn = std::move(FnAST);
|
||||
CallbackInfo.setCompileAction([this, Fn]() {
|
||||
auto H = addModule(IRGen(Session, *Fn));
|
||||
return findSymbolIn(H, Fn->Proto->Name).getAddress();
|
||||
return findUnmangledSymbolIn(H, Fn->Proto->Name).getAddress();
|
||||
});
|
||||
CallbackInfo.setUpdateAction(
|
||||
CompileCallbacks.getLocalFPUpdater(H, mangle(BodyPtrName)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user