@@ -334,7 +334,7 @@ class SwiftJIT {
334
334
335
335
(*EPCIU)->createLazyCallThroughManager (
336
336
(*J)->getExecutionSession (),
337
- llvm::pointerToJITTargetAddress (&handleLazyCompilationFailure));
337
+ llvm::orc::ExecutorAddr::fromPtr (&handleLazyCompilationFailure));
338
338
339
339
if (auto Err = setUpInProcessLCTMReentryViaEPCIU (**EPCIU))
340
340
return std::move (Err);
@@ -404,11 +404,13 @@ class SwiftJIT {
404
404
return llvm::Error::success ();
405
405
}
406
406
407
- llvm::Error notifyRemovingResources (llvm::orc::ResourceKey K) override {
407
+ llvm::Error notifyRemovingResources (llvm::orc::JITDylib &JD,
408
+ llvm::orc::ResourceKey K) override {
408
409
return llvm::Error::success ();
409
410
}
410
411
411
- void notifyTransferringResources (llvm::orc::ResourceKey DstKey,
412
+ void notifyTransferringResources (llvm::orc::JITDylib &JD,
413
+ llvm::orc::ResourceKey DstKey,
412
414
llvm::orc::ResourceKey SrcKey) override {}
413
415
414
416
private:
@@ -440,9 +442,8 @@ class SwiftJIT {
440
442
continue ;
441
443
442
444
if (ToRename.count (Sym->getName ())) {
443
- // FIXME: Get rid of the temporary when Swift's llvm-project is
444
- // updated to LLVM 17.
445
- auto NewName = G.allocateString (mangleFunctionBody (Sym->getName ()));
445
+ auto NewName =
446
+ G.allocateCString (Twine (mangleFunctionBody (Sym->getName ())));
446
447
Sym->setName ({NewName.data (), NewName.size ()});
447
448
}
448
449
}
0 commit comments