[BOLT] Reduce CFI warning verbosity (#105336)
CFI programs may have more saves than restores and this is completely benign from BOLT's perspective. Reduce the verbosity and print the warning only under `-v=1` and above.
This commit is contained in:
@@ -2502,7 +2502,7 @@ void BinaryFunction::annotateCFIState() {
|
||||
}
|
||||
}
|
||||
|
||||
if (!StateStack.empty()) {
|
||||
if (opts::Verbosity >= 1 && !StateStack.empty()) {
|
||||
BC.errs() << "BOLT-WARNING: non-empty CFI stack at the end of " << *this
|
||||
<< '\n';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user