Skip to content

Commit b67fec3

Browse files
authored
Revert "[Orc] Add NotifyCreated callback for LLJITBuilder (#84175)"
This reverts commit f78129e.
1 parent 10edabb commit b67fec3

File tree

1 file changed

+0
-18
lines changed
  • llvm/include/llvm/ExecutionEngine/Orc

1 file changed

+0
-18
lines changed

llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ class LLJITBuilderState {
311311

312312
using PlatformSetupFunction = unique_function<Expected<JITDylibSP>(LLJIT &J)>;
313313

314-
using NotifyCreatedFunction = std::function<Error(LLJIT &)>;
315-
316314
std::unique_ptr<ExecutorProcessControl> EPC;
317315
std::unique_ptr<ExecutionSession> ES;
318316
std::optional<JITTargetMachineBuilder> JTMB;
@@ -323,7 +321,6 @@ class LLJITBuilderState {
323321
CompileFunctionCreator CreateCompileFunction;
324322
unique_function<Error(LLJIT &)> PrePlatformSetup;
325323
PlatformSetupFunction SetUpPlatform;
326-
NotifyCreatedFunction NotifyCreated;
327324
unsigned NumCompileThreads = 0;
328325

329326
/// Called prior to JIT class construcion to fix up defaults.
@@ -444,16 +441,6 @@ class LLJITBuilderSetters {
444441
return impl();
445442
}
446443

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-
457444
/// Set the number of compile threads to use.
458445
///
459446
/// If set to zero, compilation will be performed on the execution thread when
@@ -487,11 +474,6 @@ class LLJITBuilderSetters {
487474
std::unique_ptr<JITType> J(new JITType(impl(), Err));
488475
if (Err)
489476
return std::move(Err);
490-
491-
if (impl().NotifyCreated)
492-
if (Error Err = impl().NotifyCreated(*J))
493-
return Err;
494-
495477
return std::move(J);
496478
}
497479

0 commit comments

Comments
 (0)