aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-08-21 19:20:18 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-08-21 19:27:51 -0400
commitefdbede7abf91d5fe2836d95987a83e95e9fcf8e (patch)
tree79c60d1fbcb793ad98a6efa6feab03fed118f7a2 /src/analyze.hpp
parent81c441f8855d4c58f0b2ff86d3d007cf0bf395d3 (diff)
downloadzig-efdbede7abf91d5fe2836d95987a83e95e9fcf8e.tar.gz
zig-efdbede7abf91d5fe2836d95987a83e95e9fcf8e.zip
breaking: remove field alignment kludge
This breaks behavior tests as well as compile error notes for generic function calls. However it introduces better circular dependency compile errors. The next step is to add Lazy Values to fix the regressions.
Diffstat (limited to 'src/analyze.hpp')
-rw-r--r--src/analyze.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/analyze.hpp b/src/analyze.hpp
index 5752c74751..5613c18231 100644
--- a/src/analyze.hpp
+++ b/src/analyze.hpp
@@ -14,7 +14,6 @@ void semantic_analyze(CodeGen *g);
ErrorMsg *add_node_error(CodeGen *g, const AstNode *node, Buf *msg);
ErrorMsg *add_token_error(CodeGen *g, ZigType *owner, Token *token, Buf *msg);
ErrorMsg *add_error_note(CodeGen *g, ErrorMsg *parent_msg, const AstNode *node, Buf *msg);
-void emit_error_notes_for_ref_stack(CodeGen *g, ErrorMsg *msg);
ZigType *new_type_table_entry(ZigTypeId id);
ZigType *get_fn_frame_type(CodeGen *g, ZigFn *fn);
ZigType *get_pointer_to_type(CodeGen *g, ZigType *child_type, bool is_const);
@@ -71,7 +70,6 @@ bool type_is_complete(ZigType *type_entry);
bool type_is_resolved(ZigType *type_entry, ResolveStatus status);
bool type_is_invalid(ZigType *type_entry);
bool type_is_global_error_set(ZigType *err_set_type);
-Error resolve_container_type(CodeGen *g, ZigType *type_entry);
ScopeDecls *get_container_scope(ZigType *type_entry);
TypeStructField *find_struct_type_field(ZigType *type_entry, Buf *name);
TypeEnumField *find_enum_type_field(ZigType *enum_type, Buf *name);
@@ -95,7 +93,6 @@ ZigFn *create_fn(CodeGen *g, AstNode *proto_node);
ZigFn *create_fn_raw(CodeGen *g, FnInline inline_value);
void init_fn_type_id(FnTypeId *fn_type_id, AstNode *proto_node, size_t param_count_alloc);
AstNode *get_param_decl_node(ZigFn *fn_entry, size_t index);
-Error ATTRIBUTE_MUST_USE ensure_complete_type(CodeGen *g, ZigType *type_entry);
Error ATTRIBUTE_MUST_USE type_resolve(CodeGen *g, ZigType *type_entry, ResolveStatus status);
void complete_enum(CodeGen *g, ZigType *enum_type);
bool ir_get_var_is_comptime(ZigVar *var);
@@ -169,12 +166,11 @@ ConstExprValue *create_const_slice(CodeGen *g, ConstExprValue *array_val, size_t
void init_const_arg_tuple(CodeGen *g, ConstExprValue *const_val, size_t arg_index_start, size_t arg_index_end);
ConstExprValue *create_const_arg_tuple(CodeGen *g, size_t arg_index_start, size_t arg_index_end);
-void init_const_undefined(CodeGen *g, ConstExprValue *const_val);
-
ConstExprValue *create_const_vals(size_t count);
ZigType *make_int_type(CodeGen *g, bool is_signed, uint32_t size_in_bits);
void expand_undef_array(CodeGen *g, ConstExprValue *const_val);
+void expand_undef_struct(CodeGen *g, ConstExprValue *const_val);
void update_compile_var(CodeGen *g, Buf *name, ConstExprValue *value);
const char *type_id_name(ZigTypeId id);