mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user