PPCTables: Make the op type enum an enum class

Reduces the amount of identifiers dropped into the global namespace when
the PPCTables header is included.
This commit is contained in:
Lioncash
2018-03-18 18:16:26 -04:00
parent 0c128f3abe
commit 6428cee939
7 changed files with 291 additions and 291 deletions

View File

@ -241,8 +241,8 @@ void CompileExceptionCheck(ExceptionType type)
if (type == ExceptionType::FIFOWrite)
{
// Check in case the code has been replaced since: do we need to do this?
int optype = GetOpInfo(PowerPC::HostRead_U32(PC))->type;
if (optype != OPTYPE_STORE && optype != OPTYPE_STOREFP && (optype != OPTYPE_STOREPS))
const ::OpType optype = GetOpInfo(PowerPC::HostRead_U32(PC))->type;
if (optype != ::OpType::Store && optype != ::OpType::StoreFP && optype != ::OpType::StorePS)
return;
}
exception_addresses->insert(PC);