Skip to content

Commit

Permalink
perf: Postponed statement handling
Browse files Browse the repository at this point in the history
  • Loading branch information
slavek-kucera authored Jul 2, 2024
1 parent 52fa34a commit 5427ca0
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 239 deletions.
7 changes: 2 additions & 5 deletions parser_library/src/context/literal_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,18 +210,15 @@ void literal_pool::generate_pool(diagnosable_ctx& diags, index_t<using_collectio
diags.add_diagnostic(diagnostic_op::error_E033(it->second.r));
else
{
auto adder = ord_ctx.symbol_dependencies().add_dependencies(
ord_ctx.symbol_dependencies().add_postponed_statement(
std::make_unique<literal_postponed_statement>(lit, lit_val),
dependency_evaluation_context {
lit_val.loctr,
lit_key.generation,
lit_key.unique_id,
active_using,
ord_ctx.current_opcode_generation(),
},
li);
adder.add_dependency();
adder.finish();
});
}
}

Expand Down
Loading

0 comments on commit 5427ca0

Please sign in to comment.