diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2019-11-25 20:41:17 -0500 |
|---|---|---|
| committer | Michael Dusan <michael.dusan@gmail.com> | 2019-11-25 20:41:17 -0500 |
| commit | d20df7df09ab5352ced84505e79e3a5b50bbeab4 (patch) | |
| tree | 80258e43732ced8c218480926fe7366db752fc4a /src | |
| parent | f8a2dec243d9bbfed8cd21528ccd93c4f4b9163e (diff) | |
| download | zig-d20df7df09ab5352ced84505e79e3a5b50bbeab4.tar.gz zig-d20df7df09ab5352ced84505e79e3a5b50bbeab4.zip | |
stage1: fix bad intern counting
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index f847722438..db135092e0 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -1230,9 +1230,6 @@ static IrInstruction *ir_build_return(IrBuilder *irb, Scope *scope, AstNode *sou } static IrInstruction *ir_build_const_void(IrBuilder *irb, Scope *scope, AstNode *source_node) { -#ifdef ZIG_ENABLE_MEM_PROFILE - memprof_intern_count.x_void += 1; -#endif IrInstructionConst *const_instruction = ir_create_instruction_noval<IrInstructionConst>(irb, scope, source_node); ir_instruction_append(irb->current_basic_block, &const_instruction->base); const_instruction->base.value = irb->codegen->intern.for_void(); @@ -1240,9 +1237,6 @@ static IrInstruction *ir_build_const_void(IrBuilder *irb, Scope *scope, AstNode } static IrInstruction *ir_build_const_undefined(IrBuilder *irb, Scope *scope, AstNode *source_node) { -#ifdef ZIG_ENABLE_MEM_PROFILE - memprof_intern_count.x_undefined += 1; -#endif IrInstructionConst *const_instruction = ir_create_instruction_noval<IrInstructionConst>(irb, scope, source_node); ir_instruction_append(irb->current_basic_block, &const_instruction->base); const_instruction->base.value = irb->codegen->intern.for_undefined(); @@ -1274,9 +1268,6 @@ static IrInstruction *ir_build_const_bigfloat(IrBuilder *irb, Scope *scope, AstN } static IrInstruction *ir_build_const_null(IrBuilder *irb, Scope *scope, AstNode *source_node) { -#ifdef ZIG_ENABLE_MEM_PROFILE - memprof_intern_count.x_null += 1; -#endif IrInstructionConst *const_instruction = ir_create_instruction_noval<IrInstructionConst>(irb, scope, source_node); ir_instruction_append(irb->current_basic_block, &const_instruction->base); const_instruction->base.value = irb->codegen->intern.for_null(); @@ -11460,18 +11451,12 @@ static IrInstruction *ir_const_undef(IrAnalyze *ira, IrInstruction *source_instr } static IrInstruction *ir_const_unreachable(IrAnalyze *ira, IrInstruction *source_instruction) { -#ifdef ZIG_ENABLE_MEM_PROFILE - memprof_intern_count.x_unreachable += 1; -#endif IrInstruction *result = ir_const_noval(ira, source_instruction); result->value = ira->codegen->intern.for_unreachable(); return result; } static IrInstruction *ir_const_void(IrAnalyze *ira, IrInstruction *source_instruction) { -#ifdef ZIG_ENABLE_MEM_PROFILE - memprof_intern_count.x_void += 1; -#endif IrInstruction *result = ir_const_noval(ira, source_instruction); result->value = ira->codegen->intern.for_void(); return result; |
