[BOLT][NFC] Move out PrintProgramStats from Profile into Rewrite (#93075)

Eliminate the dependence of Profile on Passes.

Test Plan: NFC
This commit is contained in:
Amir Ayupov
2024-05-22 13:53:41 -07:00
committed by GitHub
parent 848bef5d85
commit 1529ec085a
3 changed files with 5 additions and 4 deletions

View File

@@ -613,8 +613,6 @@ Error DataAggregator::readProfile(BinaryContext &BC) {
if (std::error_code EC = writeBATYAML(BC, opts::SaveProfile))
report_error("cannot create output data file", EC);
}
PrintProgramStats PPS(BAT);
BC.logBOLTErrorsAndQuitOnFatal(PPS.runOnFunctions(BC));
}
return Error::success();