Skip to content

Commit 1ebda11

Browse files
authored
[BOLT] Fix duplicate diagnostic message (#95167)
Print .altinstructions parsing stats only once.
1 parent 3106a23 commit 1ebda11

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bolt/lib/Rewrite/LinuxKernelRewriter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,8 +1479,9 @@ Error LinuxKernelRewriter::tryReadAltInstructions(uint32_t AltInstFeatureSize,
14791479
}
14801480
}
14811481

1482-
BC.outs() << "BOLT-INFO: parsed " << EntryID
1483-
<< " alternative instruction entries\n";
1482+
if (!ParseOnly)
1483+
BC.outs() << "BOLT-INFO: parsed " << EntryID
1484+
<< " alternative instruction entries\n";
14841485

14851486
return Error::success();
14861487
}

0 commit comments

Comments
 (0)