Skip to content

Commit 1f22678

Browse files
committed
[BOLT] Fix unrecognized option values for print-sorted-by-order
1 parent 6414ae6 commit 1f22678

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bolt/lib/Passes/BinaryPasses.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ static cl::opt<DynoStatsSortOrder> DynoStatsSortOrderOpt(
6060
"print-sorted-by-order",
6161
cl::desc("use ascending or descending order when printing functions "
6262
"ordered by dyno stats"),
63-
cl::init(DynoStatsSortOrder::Descending), cl::cat(BoltOptCategory));
63+
cl::init(DynoStatsSortOrder::Descending),
64+
cl::values(clEnumValN(DynoStatsSortOrder::Ascending, "ascending",
65+
"Ascending order"),
66+
clEnumValN(DynoStatsSortOrder::Descending, "descending",
67+
"Descending order")),
68+
cl::cat(BoltOptCategory));
6469

6570
cl::list<std::string>
6671
HotTextMoveSections("hot-text-move-sections",

0 commit comments

Comments
 (0)