From 8d62773570d53c9d747ccc90c37ea27bf2ab364e Mon Sep 17 00:00:00 2001 From: LC Date: Thu, 16 Jul 2026 09:44:24 -0400 Subject: [PATCH] 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. --- .../Source/Interface/IR/Passes/x87StackOptimizationPass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp b/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp index d65dba863..f4dd9c5f0 100644 --- a/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp +++ b/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp @@ -32,14 +32,14 @@ namespace FEXCore::IR { // FIXME(pmatos): copy from OpcodeDispatcher.h -inline uint32_t MMBaseOffset() { +static uint32_t MMBaseOffset() { return static_cast(offsetof(Core::CPUState, mm[0][0])); } // Similar helper to the one in OpcodeDispatcher.h except we do not // need to handle flags, etc. template -void DeriveOp(Ref& RefV, IROps NewOp, IREmitter::IRPair Expr) { +static void DeriveOp(Ref& RefV, IROps NewOp, IREmitter::IRPair Expr) { Expr.first->Header.Op = NewOp; RefV = Expr; }