From 4cdc57ce8041aecabd3175f2dff176b115f17724 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Wed, 8 Jan 2020 14:14:39 +0000 Subject: I should commit more --- scope.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'scope.h') diff --git a/scope.h b/scope.h index 2b4e7ab..b12ce5e 100644 --- a/scope.h +++ b/scope.h @@ -8,6 +8,15 @@ typedef struct scope_entry { LLVMValueRef value; LLVMTypeRef type; LLVMMetadataRef metadata; + + int has_filler; + struct { + char *id; + LLVMValueRef value; + LLVMTypeRef type; + LLVMTypeRef constructs; + } filler; + struct scope_entry *prev; } scope_entry; @@ -21,7 +30,9 @@ typedef scope_layer *scope; void scope_push_layer(scope *sc); void scope_pop_layer(scope *sc); -void scope_add_entry(scope sc, char *id, LLVMValueRef val, LLVMTypeRef type); +scope_entry *scope_add_entry(scope sc, char *id, LLVMValueRef val, + LLVMTypeRef type); + scope_entry *scope_find(scope sc, char *id); #endif /* SCOPE_H */ -- cgit v1.2.1