[BOLT] Change reorder-blocks deprecated option warning output
authorAmir Ayupov <aaupov@fb.com>
Thu, 8 Sep 2022 22:48:20 +0000 (15:48 -0700)
committerAmir Ayupov <aaupov@fb.com>
Thu, 8 Sep 2022 22:48:41 +0000 (15:48 -0700)
Revert to using `BOLT-WARNING`

Reviewed By: #bolt, maksfb

Differential Revision: https://reviews.llvm.org/D132778

bolt/lib/Passes/BinaryPasses.cpp

index 3c815aa..2874819 100644 (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;
       }
     }));