Core/Thunks: Remove unused IR/forward declarations

Moves the IR include into one of the more specific headers, which avoids dumping the IR header into any core bits that use the interface.

Also uncovered a missing header guard.
This commit is contained in:
Lioncache committed 2025-09-06 22:28:27 -04:00
1 parent bd0cae9298
commit d36c387c1f
2 files changed
+5 -14

No files matched your search

+2 -14
View File
@@ -7,18 +7,6 @@ $end_info$
#pragma once
#include <FEXCore/fextl/memory.h>
#include <FEXCore/fextl/vector.h>
#include <FEXCore/IR/IR.h>
namespace FEXCore::Context {
class Context;
}
namespace FEXCore::Core {
struct InternalThreadState;
}
namespace FEXCore::IR {
struct SHA256Sum;
}
@@ -28,7 +16,7 @@ typedef void ThunkedFunction(void* ArgsRv);
class ThunkHandler {
public:
virtual ~ThunkHandler() = default;
virtual ThunkedFunction* LookupThunk(const IR::SHA256Sum& sha256) = 0;
virtual ~ThunkHandler() {}
};
}; // namespace FEXCore
} // namespace FEXCore
+3
View File
@@ -1,6 +1,9 @@
// SPDX-License-Identifier: MIT
#pragma once
#include <FEXCore/Core/Thunks.h>
#include <FEXCore/fextl/memory.h>
#include <FEXCore/IR/IR.h>
#include <span>