From: Wolfgang Bumiller Date: Sat, 18 Oct 2014 12:27:16 +0000 (+0200) Subject: we like to spell things properly - if this commit message contains a typo I don't... X-Git-Tag: xonotic-v0.8.1~9^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b25e9555392e7fced9b4c6241464d1c2824cae3;p=xonotic%2Fgmqcc.git we like to spell things properly - if this commit message contains a typo I don't catch before pushing then that's totally intentional --- diff --git a/ast.c b/ast.c index 24d0479..3af6ffc 100644 --- a/ast.c +++ b/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) { diff --git a/ir.c b/ir.c index d562edc..c99f591 100644 --- a/ir.c +++ b/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; } diff --git a/ir.h b/ir.h index 731fbbc..aa06179 100644 --- a/ir.h +++ b/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,