[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user