mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
enum Addressing_Mode : u8;
This commit is contained in:
+2
-2
@@ -9,15 +9,15 @@ struct Checker;
|
|||||||
struct CheckerInfo;
|
struct CheckerInfo;
|
||||||
struct CheckerContext;
|
struct CheckerContext;
|
||||||
|
|
||||||
enum AddressingMode;
|
enum AddressingMode : u8;
|
||||||
struct TypeAndValue;
|
struct TypeAndValue;
|
||||||
|
|
||||||
// ExprInfo stores information used for "untyped" expressions
|
// ExprInfo stores information used for "untyped" expressions
|
||||||
struct ExprInfo {
|
struct ExprInfo {
|
||||||
AddressingMode mode;
|
AddressingMode mode;
|
||||||
|
bool is_lhs; // Debug info
|
||||||
Type * type;
|
Type * type;
|
||||||
ExactValue value;
|
ExactValue value;
|
||||||
bool is_lhs; // Debug info
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gb_inline ExprInfo *make_expr_info(AddressingMode mode, Type *type, ExactValue const &value, bool is_lhs) {
|
gb_inline ExprInfo *make_expr_info(AddressingMode mode, Type *type, ExactValue const &value, bool is_lhs) {
|
||||||
|
|||||||
+2
-1
@@ -6,7 +6,7 @@ struct DeclInfo;
|
|||||||
struct AstFile;
|
struct AstFile;
|
||||||
struct AstPackage;
|
struct AstPackage;
|
||||||
|
|
||||||
enum AddressingMode {
|
enum AddressingMode : u8 {
|
||||||
Addressing_Invalid = 0, // invalid addressing mode
|
Addressing_Invalid = 0, // invalid addressing mode
|
||||||
Addressing_NoValue = 1, // no value (void in C)
|
Addressing_NoValue = 1, // no value (void in C)
|
||||||
Addressing_Value = 2, // computed value (rvalue)
|
Addressing_Value = 2, // computed value (rvalue)
|
||||||
@@ -29,6 +29,7 @@ enum AddressingMode {
|
|||||||
|
|
||||||
struct TypeAndValue {
|
struct TypeAndValue {
|
||||||
AddressingMode mode;
|
AddressingMode mode;
|
||||||
|
bool is_lhs; // Debug info
|
||||||
Type * type;
|
Type * type;
|
||||||
ExactValue value;
|
ExactValue value;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user