X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ir.h;h=c81d1a24032454972fcfddbb5965992547cb6f4c;hp=4f40048c2a5594a2b66ac54aa7d629475a7f854a;hb=031f827da5457ed969bbf66e520105f9600a1229;hpb=95d232ca7285b49ce1bdccbe81c2c444c68e1c4d diff --git a/ir.h b/ir.h index 4f40048..c81d1a2 100644 --- a/ir.h +++ b/ir.h @@ -201,11 +201,11 @@ struct ir_function { ir_builder *m_owner; - std::string m_name; - qc_type m_outtype; - int *m_params = nullptr; - ir_flag_t m_flags = 0; - int m_builtin = 0; + std::string m_name; + qc_type m_outtype; + std::vector m_params; + ir_flag_t m_flags = 0; + int m_builtin = 0; std::vector> m_blocks; @@ -249,7 +249,7 @@ ir_block* ir_function_create_block(lex_ctx_t ctx, ir_function*, const char /* builder */ #define IR_HT_SIZE 1024 -#define IR_MAX_VINSTR_TEMPS 1 +#define IR_MAX_VINSTR_TEMPS 2 struct ir_builder { ir_builder(const std::string& modulename);