File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,5 @@ add_llvm_library(LLVMBOLTProfile
17
17
target_link_libraries (LLVMBOLTProfile
18
18
PRIVATE
19
19
LLVMBOLTCore
20
- LLVMBOLTPasses
21
20
LLVMBOLTUtils
22
21
)
Original file line number Diff line number Diff line change @@ -613,8 +613,6 @@ Error DataAggregator::readProfile(BinaryContext &BC) {
613
613
if (std::error_code EC = writeBATYAML (BC, opts::SaveProfile))
614
614
report_error (" cannot create output data file" , EC);
615
615
}
616
- PrintProgramStats PPS (BAT);
617
- BC.logBOLTErrorsAndQuitOnFatal (PPS.runOnFunctions (BC));
618
616
}
619
617
620
618
return Error::success ();
Original file line number Diff line number Diff line change 17
17
#include " bolt/Core/MCPlusBuilder.h"
18
18
#include " bolt/Core/ParallelUtilities.h"
19
19
#include " bolt/Core/Relocation.h"
20
+ #include " bolt/Passes/BinaryPasses.h"
20
21
#include " bolt/Passes/CacheMetrics.h"
21
22
#include " bolt/Passes/ReorderFunctions.h"
22
23
#include " bolt/Profile/BoltAddressTranslation.h"
@@ -3281,8 +3282,11 @@ void RewriteInstance::processProfileData() {
3281
3282
// Release memory used by profile reader.
3282
3283
ProfileReader.reset ();
3283
3284
3284
- if (opts::AggregateOnly)
3285
+ if (opts::AggregateOnly) {
3286
+ PrintProgramStats PPS (&*BAT);
3287
+ BC->logBOLTErrorsAndQuitOnFatal (PPS.runOnFunctions (*BC));
3285
3288
exit (0 );
3289
+ }
3286
3290
}
3287
3291
3288
3292
void RewriteInstance::disassembleFunctions () {
You can’t perform that action at this time.
0 commit comments