summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/scope.h b/scope.h
index 52ae6b1..4d6cc7f 100644
--- a/scope.h
+++ b/scope.h
@@ -3,16 +3,18 @@
struct storage_location {
enum {
- REGISTER,
- JMP_LABEL,
- BP_OFFSET,
- IMMEDIATE,
+ STO_REG,
+ STO_LABEL,
+ STO_STACK,
+ STO_IMM,
+ STO_FN,
} type;
union {
const struct reg* reg;
const char* label;
- long long offset;
+ long long bp_offset;
unsigned long long value;
+ struct fn_decl_node* decl;
};
};