x64Emitter: Use an enum class to represent FixupBranch branch types

Gets rid of the use of magic values and replaces them with strongly
typed symbolic names.
This commit is contained in:
Lioncash
2018-05-06 21:56:30 -04:00
parent c3d88a622d
commit 82b1518342
2 changed files with 12 additions and 6 deletions

View File

@ -322,8 +322,14 @@ inline u32 PtrOffset(const void* ptr, const void* base = nullptr)
struct FixupBranch
{
enum class Type
{
Branch8Bit,
Branch32Bit
};
u8* ptr;
int type; // 0 = 8bit 1 = 32bit
Type type;
};
class XEmitter