Merge remote-tracking branch 'origin/topic/vern/dump-no-opt-ZAM'

* origin/topic/vern/dump-no-opt-ZAM:
  fixed -O dump-final-ZAM to work in conjunction with -O no-ZAM-opt
This commit is contained in:
Arne Welzel 2024-12-02 10:59:04 +01:00
commit 423c2de4c8
3 changed files with 15 additions and 8 deletions

View file

@ -1,3 +1,7 @@
7.1.0-dev.645 | 2024-12-02 10:59:04 +0100
* fixed -O dump-final-ZAM to work in conjunction with -O no-ZAM-opt (Vern Paxson, Corelight)
7.1.0-dev.643 | 2024-12-02 09:51:10 +0100
* Remove support for building against Spicy versions before 1.8 (Benjamin Bannier, Corelight)

View file

@ -1 +1 @@
7.1.0-dev.643
7.1.0-dev.645

View file

@ -404,10 +404,9 @@ void ZAMCompiler::Dump() {
}
}
else if ( analysis_options.dump_final_ZAM ) {
ASSERT(remapped_frame);
printf("\nFrame for %s:\n", func->GetName().c_str());
if ( remapped_frame ) {
for ( auto i = 0U; i < shared_frame_denizens.size(); ++i ) {
printf("frame[%d] =", i);
for ( auto& id : shared_frame_denizens[i].ids )
@ -415,6 +414,10 @@ void ZAMCompiler::Dump() {
printf("\n");
}
}
else
for ( const auto& elem : frame_layout1 )
printf("frame[%d] = %s\n", elem.second, elem.first->Name());
}
if ( ! insts2.empty() )
printf("Final code for %s:\n", func->GetName().c_str());