mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
script_opt: Use Func::GetName()
This commit is contained in:
parent
89127722ea
commit
71e9c8d436
16 changed files with 49 additions and 48 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue