mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fixed -O dump-final-ZAM to work in conjunction with -O no-ZAM-opt
This commit is contained in:
parent
a2a47ba334
commit
5feadf5d69
1 changed files with 10 additions and 7 deletions
|
@ -404,16 +404,19 @@ void ZAMCompiler::Dump() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( analysis_options.dump_final_ZAM ) {
|
else if ( analysis_options.dump_final_ZAM ) {
|
||||||
ASSERT(remapped_frame);
|
|
||||||
|
|
||||||
printf("\nFrame for %s:\n", func->GetName().c_str());
|
printf("\nFrame for %s:\n", func->GetName().c_str());
|
||||||
|
|
||||||
for ( auto i = 0U; i < shared_frame_denizens.size(); ++i ) {
|
if ( remapped_frame ) {
|
||||||
printf("frame[%d] =", i);
|
for ( auto i = 0U; i < shared_frame_denizens.size(); ++i ) {
|
||||||
for ( auto& id : shared_frame_denizens[i].ids )
|
printf("frame[%d] =", i);
|
||||||
printf(" %s", id->Name());
|
for ( auto& id : shared_frame_denizens[i].ids )
|
||||||
printf("\n");
|
printf(" %s", id->Name());
|
||||||
|
printf("\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
for ( const auto& elem : frame_layout1 )
|
||||||
|
printf("frame[%d] = %s\n", elem.second, elem.first->Name());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! insts2.empty() )
|
if ( ! insts2.empty() )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue