[BOLT] Change reorder-blocks deprecated option warning output

Revert to using `BOLT-WARNING`

Reviewed By: #bolt, maksfb

Differential Revision: https://reviews.llvm.org/D132778
This commit is contained in:
Amir Ayupov 2022-09-08 15:48:20 -07:00
parent fb98a623fb
commit 873942e178
1 changed files with 2 additions and 3 deletions

View File

@ -178,9 +178,8 @@ cl::opt<bolt::ReorderBasicBlocks::LayoutType> ReorderBlocks(
cl::ZeroOrMore, cl::cat(BoltOptCategory),
cl::callback([](const bolt::ReorderBasicBlocks::LayoutType &option) {
if (option == bolt::ReorderBasicBlocks::LT_OPTIMIZE_CACHE_PLUS) {
WithColor::warning()
<< "'-reorder-blocks=cache+' is deprecated, "
<< "please use '-reorder-blocks=ext-tsp' instead\n";
errs() << "BOLT-WARNING: '-reorder-blocks=cache+' is deprecated, please"
<< " use '-reorder-blocks=ext-tsp' instead\n";
ReorderBlocks = bolt::ReorderBasicBlocks::LT_OPTIMIZE_EXT_TSP;
}
}));