script_opt: Use Func::GetName()

This commit is contained in:
Arne Welzel 2024-09-27 12:52:32 +02:00
parent 89127722ea
commit 71e9c8d436
16 changed files with 49 additions and 48 deletions

View file

@ -81,7 +81,7 @@ void ZAMCompiler::OptimizeInsts() {
KillInst(i);
if ( analysis_options.dump_ZAM ) {
printf("Original ZAM code for %s:\n", func->Name());
printf("Original ZAM code for %s:\n", func->GetName().c_str());
DumpInsts1(nullptr);
}
@ -915,7 +915,7 @@ zeek_uint_t ZAMCompiler::FirstLiveInst(zeek_uint_t i, bool follow_gotos) {
if ( i0->live ) {
if ( follow_gotos && i0->IsUnconditionalBranch() ) {
if ( ++num_inspected > insts1.size() ) {
reporter->Error("%s contains an infinite loop", func->Name());
reporter->Error("%s contains an infinite loop", func->GetName().c_str());
return i;
}