x64/reg_alloc: Use type alias for array returned by GetArgumentInfo()

This way if the number ever changes, we don't need to change the type in
other places.
This commit is contained in:
Lioncash 2018-08-13 11:10:34 -04:00 committed by MerryMage
parent 2188765e28
commit c41b5a3492
3 changed files with 6 additions and 4 deletions

View file

@ -19,7 +19,7 @@ namespace AES = Common::Crypto::AES;
using AESFn = void(AES::State&, const AES::State&);
static void EmitAESFunction(std::array<Argument, 3> args, EmitContext& ctx, BlockOfCode& code,
static void EmitAESFunction(RegAlloc::ArgumentInfo args, EmitContext& ctx, BlockOfCode& code,
IR::Inst* inst, AESFn fn) {
constexpr u32 stack_space = static_cast<u32>(sizeof(AES::State)) * 2;
const Xbyak::Xmm input = ctx.reg_alloc.UseXmm(args[0]);