diff options
author | Ash Wolf <ninji@wuffs.org> | 2022-12-14 01:00:56 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2022-12-14 01:00:56 +0000 |
commit | bc1321735c15104ffad195e1509cab5f3a044260 (patch) | |
tree | 8b2a54226e10e8a564a2287cd8e65b577e0fd6c2 /includes/compiler/common.h | |
parent | 25bab8b1fb2fc851ea3f1f630b3de65ca6afdc22 (diff) | |
download | MWCC-bc1321735c15104ffad195e1509cab5f3a044260.tar.gz MWCC-bc1321735c15104ffad195e1509cab5f3a044260.zip |
rename some stuff and use an enum for RegClass
Diffstat (limited to 'includes/compiler/common.h')
-rw-r--r-- | includes/compiler/common.h | 15 |
1 files changed, 13 insertions, 2 deletions
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 |