Skip to content

Commit

Permalink
Merge pull request #3322 from Sonicadvance1/remove_unused_exithandler
Browse files Browse the repository at this point in the history
PassManager: Removes unused exit handler
  • Loading branch information
Sonicadvance1 committed Dec 14, 2023
2 parents bd13052 + 8bb5462 commit 12923ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions FEXCore/Source/Interface/Core/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,6 @@ namespace FEXCore::Context {
Thread->LookupCache = fextl::make_unique<FEXCore::LookupCache>(this);
Thread->FrontendDecoder = fextl::make_unique<FEXCore::Frontend::Decoder>(this);
Thread->PassManager = fextl::make_unique<FEXCore::IR::PassManager>();
Thread->PassManager->RegisterExitHandler([this]() {
Stop(false /* Ignore current thread */);
});

Thread->CurrentFrame->Pointers.Common.L1Pointer = Thread->LookupCache->GetL1Pointer();
Thread->CurrentFrame->Pointers.Common.L2Pointer = Thread->LookupCache->GetPagePointer();
Expand Down
7 changes: 0 additions & 7 deletions FEXCore/Source/Interface/IR/PassManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ namespace FEXCore::IR {
class PassManager;
class IREmitter;

using ShouldExitHandler = std::function<void(void)>;

class Pass {
public:
virtual ~Pass() = default;
Expand Down Expand Up @@ -62,10 +60,6 @@ class PassManager final {

bool Run(IREmitter *IREmit);

void RegisterExitHandler(ShouldExitHandler Handler) {
ExitHandler = std::move(Handler);
}

bool HasPass(fextl::string Name) const {
return NameToPassMaping.contains(Name);
}
Expand All @@ -86,7 +80,6 @@ class PassManager final {
void Finalize();

protected:
ShouldExitHandler ExitHandler;
FEXCore::HLE::SyscallHandler *SyscallHandler;

private:
Expand Down

0 comments on commit 12923ba

Please sign in to comment.