mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 11:51:04 +01:00
Add formatter support for dump-sem-ir ranges (#5379)
This prints instructions that are inside the range, and entities that overlap with the range. Note this can lead to incomplete printing of entity contents.
This commit is contained in:
@@ -568,7 +568,8 @@ auto CompilationUnit::PostCheck() -> void {
|
||||
return IncludeInDumps(import_ir->filename());
|
||||
};
|
||||
|
||||
SemIR::Formatter formatter(&*sem_ir_, should_format_entity);
|
||||
SemIR::Formatter formatter(&*sem_ir_, should_format_entity,
|
||||
*tree_and_subtrees_getter_);
|
||||
formatter.Format();
|
||||
if (vlog_stream_) {
|
||||
CARBON_VLOG("*** SemIR::File ***\n");
|
||||
|
||||
Reference in New Issue
Block a user