@@ -311,8 +311,6 @@ class LLJITBuilderState {
311
311
312
312
using PlatformSetupFunction = unique_function<Expected<JITDylibSP>(LLJIT &J)>;
313
313
314
- using NotifyCreatedFunction = std::function<Error(LLJIT &)>;
315
-
316
314
std::unique_ptr<ExecutorProcessControl> EPC;
317
315
std::unique_ptr<ExecutionSession> ES;
318
316
std::optional<JITTargetMachineBuilder> JTMB;
@@ -323,7 +321,6 @@ class LLJITBuilderState {
323
321
CompileFunctionCreator CreateCompileFunction;
324
322
unique_function<Error(LLJIT &)> PrePlatformSetup;
325
323
PlatformSetupFunction SetUpPlatform;
326
- NotifyCreatedFunction NotifyCreated;
327
324
unsigned NumCompileThreads = 0 ;
328
325
329
326
// / Called prior to JIT class construcion to fix up defaults.
@@ -444,16 +441,6 @@ class LLJITBuilderSetters {
444
441
return impl ();
445
442
}
446
443
447
- // / Set up a callback after successful construction of the JIT.
448
- // /
449
- // / This is useful to attach generators to JITDylibs or inject initial symbol
450
- // / definitions.
451
- SetterImpl &
452
- setNotifyCreatedCallback (LLJITBuilderState::NotifyCreatedFunction Callback) {
453
- impl ().NotifyCreated = std::move (Callback);
454
- return impl ();
455
- }
456
-
457
444
// / Set the number of compile threads to use.
458
445
// /
459
446
// / If set to zero, compilation will be performed on the execution thread when
@@ -487,11 +474,6 @@ class LLJITBuilderSetters {
487
474
std::unique_ptr<JITType> J (new JITType (impl (), Err));
488
475
if (Err)
489
476
return std::move (Err);
490
-
491
- if (impl ().NotifyCreated )
492
- if (Error Err = impl ().NotifyCreated (*J))
493
- return Err;
494
-
495
477
return std::move (J);
496
478
}
497
479
0 commit comments