x87StackOptimizationPass: Make helpers internally linked

Makes it obvious they're only used in this TU and allows the compiler to
warn if they ever become unused.
This commit is contained in:
LC committed 2026-07-16 09:56:14 -04:00
1 parent 9e26c57643
commit 8d62773570
1 file changed
+2 -2
@@ -32,14 +32,14 @@
namespace FEXCore::IR {
// FIXME(pmatos): copy from OpcodeDispatcher.h
inline uint32_t MMBaseOffset() {
static uint32_t MMBaseOffset() {
return static_cast<uint32_t>(offsetof(Core::CPUState, mm[0][0]));
}
// Similar helper to the one in OpcodeDispatcher.h except we do not
// need to handle flags, etc.
template<typename T>
void DeriveOp(Ref& RefV, IROps NewOp, IREmitter::IRPair<T> Expr) {
static void DeriveOp(Ref& RefV, IROps NewOp, IREmitter::IRPair<T> Expr) {
Expr.first->Header.Op = NewOp;
RefV = Expr;
}