From bc1321735c15104ffad195e1509cab5f3a044260 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Dec 2022 01:00:56 +0000 Subject: rename some stuff and use an enum for RegClass --- includes/compiler/common.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'includes/compiler/common.h') diff --git a/includes/compiler/common.h b/includes/compiler/common.h index 5a1bd48..f2b2e87 100644 --- a/includes/compiler/common.h +++ b/includes/compiler/common.h @@ -10,8 +10,6 @@ typedef struct HashNameNode { char name[1]; } HashNameNode; -typedef struct CPrepFileInfo CPrepFileInfo; - #ifdef __MWERKS__ #pragma options align=mac68k #endif @@ -118,6 +116,7 @@ typedef struct CI_FuncData CI_FuncData; typedef struct CLabel CLabel; typedef struct ClassList ClassList; typedef struct CParams CParams; +typedef struct CPrepFileInfo CPrepFileInfo; typedef struct DeclInfo DeclInfo; typedef struct DeclThing DeclThing; // rename me please typedef struct DefArgCtorInfo DefArgCtorInfo; @@ -307,6 +306,18 @@ enum { EXPORT_FLAGS_EXPORT = 0x40 }; +typedef enum RegClass { + RegClass_Invalid = -1, + RegClass_SPR = 0, + RegClass_CRFIELD = 1, + RegClass_VR = 2, + RegClass_FPR = 3, + RegClass_GPR = 4, + RegClassMax = 5, + RegClass_6 = 6, + RegClass_DCR = 7 +} RegClass; + #ifdef __MWERKS__ #pragma options align=mac68k #endif -- cgit v1.2.3