From aaa6430db60357f8c55df3e88f18005140e4550c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 18 Feb 2017 04:13:24 -0500 Subject: [PATCH] PPCAnalyst: Make SetInstructionStats' opinfo parameter a const pointer trivial const-correctness stuff --- Source/Core/Core/PowerPC/PPCAnalyst.cpp | 2 +- Source/Core/Core/PowerPC/PPCAnalyst.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index 0735eda2f7..18059abf33 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -486,7 +486,7 @@ void PPCAnalyzer::ReorderInstructions(u32 instructions, CodeOp* code) ReorderInstructionsCore(instructions, code, false, REORDER_CMP); } -void PPCAnalyzer::SetInstructionStats(CodeBlock* block, CodeOp* code, GekkoOPInfo* opinfo, +void PPCAnalyzer::SetInstructionStats(CodeBlock* block, CodeOp* code, const GekkoOPInfo* opinfo, u32 index) { code->wantsCR0 = false; diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.h b/Source/Core/Core/PowerPC/PPCAnalyst.h index 5a3b86a57a..eeefbcaf38 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.h +++ b/Source/Core/Core/PowerPC/PPCAnalyst.h @@ -176,7 +176,7 @@ private: void ReorderInstructionsCore(u32 instructions, CodeOp* code, bool reverse, ReorderType type); void ReorderInstructions(u32 instructions, CodeOp* code); - void SetInstructionStats(CodeBlock* block, CodeOp* code, GekkoOPInfo* opinfo, u32 index); + void SetInstructionStats(CodeBlock* block, CodeOp* code, const GekkoOPInfo* opinfo, u32 index); // Options u32 m_options;