stage1 重写进行代码设计并重构 提供diag替换老旧错误处理
This commit is contained in:
1 parent
7cbe2d2b9a
commit
e4347cc3ea
14 files changed
+983
-526
No files matched your search
+3
-2
@@ -1,6 +1,7 @@
|
||||
#ifndef __SPL_AST2IR_H__
|
||||
#define __SPL_AST2IR_H__
|
||||
|
||||
#include "spl_diag.h"
|
||||
#include "spl_ir.h"
|
||||
#include "spl_sema.h"
|
||||
|
||||
@@ -8,7 +9,6 @@ typedef MAP(spl_def_id_t, spl_ir_node_ref_t) spl_def2ir_map_t;
|
||||
|
||||
typedef struct {
|
||||
usize cont_blk;
|
||||
usize brk_blk;
|
||||
const char *label;
|
||||
spl_ir_node_ref_vec_t breaks;
|
||||
spl_ir_node_ref_t result_slot;
|
||||
@@ -26,7 +26,8 @@ typedef struct {
|
||||
spl_defer_stack_t defer_stack;
|
||||
spl_lang_type_id_t cur_ret_lang;
|
||||
usize cur_defer_base;
|
||||
int err_count;
|
||||
|
||||
spl_diag_t *diag;
|
||||
} spl_ast2ir_t;
|
||||
|
||||
void spl_ast2ir_init(spl_ast2ir_t *ast2ir, spl_ir_builder_t *ir, const spl_sema_t *sema);
|
||||
|
||||
Reference in new issue
Block a user