mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
we like to spell things properly - if this commit message contains a typo I don't catch before pushing then that's totally intentional
This commit is contained in:
parent
ddb0b7dd9d
commit
8b25e95553
3 changed files with 9 additions and 9 deletions
10
ast.c
10
ast.c
|
@ -1453,7 +1453,7 @@ bool ast_global_codegen(ast_value *self, ir_builder *ir, bool isfield)
|
|||
if (self->expression.flags & AST_FLAG_INCLUDE_DEF)
|
||||
self->ir_v->flags |= IR_FLAG_INCLUDE_DEF;
|
||||
if (self->expression.flags & AST_FLAG_ERASEABLE)
|
||||
self->ir_v->flags |= IR_FLAG_ERASEABLE;
|
||||
self->ir_v->flags |= IR_FLAG_ERASABLE;
|
||||
if (self->expression.flags & AST_FLAG_BLOCK_COVERAGE)
|
||||
func->flags |= IR_FLAG_BLOCK_COVERAGE;
|
||||
/* The function is filled later on ast_function_codegen... */
|
||||
|
@ -1501,7 +1501,7 @@ bool ast_global_codegen(ast_value *self, ir_builder *ir, bool isfield)
|
|||
if (self->expression.flags & AST_FLAG_INCLUDE_DEF)
|
||||
self->ir_v->flags |= IR_FLAG_INCLUDE_DEF;
|
||||
if (self->expression.flags & AST_FLAG_ERASEABLE)
|
||||
self->ir_v->flags |= IR_FLAG_ERASEABLE;
|
||||
self->ir_v->flags |= IR_FLAG_ERASABLE;
|
||||
|
||||
namelen = strlen(self->name);
|
||||
name = (char*)mem_a(namelen + 16);
|
||||
|
@ -1536,7 +1536,7 @@ bool ast_global_codegen(ast_value *self, ir_builder *ir, bool isfield)
|
|||
self->ir_v->flags |= IR_FLAG_INCLUDE_DEF;
|
||||
|
||||
if (self->expression.flags & AST_FLAG_ERASEABLE)
|
||||
self->ir_v->flags |= IR_FLAG_ERASEABLE;
|
||||
self->ir_v->flags |= IR_FLAG_ERASABLE;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -1570,7 +1570,7 @@ bool ast_global_codegen(ast_value *self, ir_builder *ir, bool isfield)
|
|||
if (self->expression.flags & AST_FLAG_INCLUDE_DEF)
|
||||
v->flags |= IR_FLAG_INCLUDE_DEF;
|
||||
if (self->expression.flags & AST_FLAG_ERASEABLE)
|
||||
self->ir_v->flags |= IR_FLAG_ERASEABLE;
|
||||
self->ir_v->flags |= IR_FLAG_ERASABLE;
|
||||
|
||||
namelen = strlen(self->name);
|
||||
name = (char*)mem_a(namelen + 16);
|
||||
|
@ -1615,7 +1615,7 @@ bool ast_global_codegen(ast_value *self, ir_builder *ir, bool isfield)
|
|||
if (self->expression.flags & AST_FLAG_INCLUDE_DEF)
|
||||
self->ir_v->flags |= IR_FLAG_INCLUDE_DEF;
|
||||
if (self->expression.flags & AST_FLAG_ERASEABLE)
|
||||
self->ir_v->flags |= IR_FLAG_ERASEABLE;
|
||||
self->ir_v->flags |= IR_FLAG_ERASABLE;
|
||||
|
||||
/* initialize */
|
||||
if (self->hasvalue) {
|
||||
|
|
6
ir.c
6
ir.c
|
@ -1124,7 +1124,7 @@ ir_value* ir_value_var(const char *name, int storetype, int vtype)
|
|||
/* helper function */
|
||||
static ir_value* ir_builder_imm_float(ir_builder *self, float value, bool add_to_list) {
|
||||
ir_value *v = ir_value_var("#IMMEDIATE", store_global, TYPE_FLOAT);
|
||||
v->flags |= IR_FLAG_ERASEABLE;
|
||||
v->flags |= IR_FLAG_ERASABLE;
|
||||
v->hasvalue = true;
|
||||
v->cvq = CV_CONST;
|
||||
v->constval.vfloat = value;
|
||||
|
@ -3581,7 +3581,7 @@ static bool gen_global_function_code(ir_builder *ir, ir_value *global)
|
|||
* If there is no definition and the thing is eraseable, we can ignore
|
||||
* outputting the function to begin with.
|
||||
*/
|
||||
if (global->flags & IR_FLAG_ERASEABLE && irfun->code_function_def < 0) {
|
||||
if (global->flags & IR_FLAG_ERASABLE && irfun->code_function_def < 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -3693,7 +3693,7 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global, bool isloc
|
|||
* if we're eraseable and the function isn't referenced ignore outputting
|
||||
* the function.
|
||||
*/
|
||||
if (global->flags & IR_FLAG_ERASEABLE && vec_size(global->reads) == 0) {
|
||||
if (global->flags & IR_FLAG_ERASABLE && vec_size(global->reads) == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
2
ir.h
2
ir.h
|
@ -47,7 +47,7 @@ enum {
|
|||
IR_FLAG_HAS_UNINITIALIZED = 1 << 1,
|
||||
IR_FLAG_HAS_GOTO = 1 << 2,
|
||||
IR_FLAG_INCLUDE_DEF = 1 << 3,
|
||||
IR_FLAG_ERASEABLE = 1 << 4,
|
||||
IR_FLAG_ERASABLE = 1 << 4,
|
||||
IR_FLAG_BLOCK_COVERAGE = 1 << 5,
|
||||
|
||||
IR_FLAG_SPLIT_VECTOR = 1 << 6,
|
||||
|
|
Loading…
Reference in a new issue