From 9d1c8fe49239242002ffe1000a1a1f1807d6a767 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 28 Dec 2020 11:31:26 -0500 Subject: [PATCH] DSPAnalyzer: Make CodeFlags private to the analyzer Now that we have the convenience functions around the flag bit manipulations, there's no external usages of the flags, so we can make these private to the analyzer implementation. Now the Analyzer namespace is largely unnecessary and can be merged with the DSP namespace in the next commit. --- Source/Core/Core/DSP/DSPAnalyzer.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Source/Core/Core/DSP/DSPAnalyzer.h b/Source/Core/Core/DSP/DSPAnalyzer.h index e2663adfd5..21dc740908 100644 --- a/Source/Core/Core/DSP/DSPAnalyzer.h +++ b/Source/Core/Core/DSP/DSPAnalyzer.h @@ -18,17 +18,6 @@ namespace DSP::Analyzer // Useful things to detect: // * Loop endpoints - so that we can avoid checking for loops every cycle. -enum CodeFlags : u8 -{ - CODE_NONE = 0, - CODE_START_OF_INST = 1, - CODE_IDLE_SKIP = 2, - CODE_LOOP_START = 4, - CODE_LOOP_END = 8, - CODE_UPDATE_SR = 16, - CODE_CHECK_EXC = 32, -}; - class Analyzer { public: @@ -86,6 +75,17 @@ public: } private: + enum CodeFlags : u8 + { + CODE_NONE = 0, + CODE_START_OF_INST = 1, + CODE_IDLE_SKIP = 2, + CODE_LOOP_START = 4, + CODE_LOOP_END = 8, + CODE_UPDATE_SR = 16, + CODE_CHECK_EXC = 32, + }; + // Flushes all analyzed state. void Reset();