Skip to content

Commit 63fb246

Browse files
committed
[llvm-debuginfo-analyzer] Add --output-sort=none option
1 parent 5bcee9a commit 63fb246

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ output for a single compilation unit.
365365

366366
.. code-block:: text
367367
368+
=none: Unsorted output.
368369
=kind: Sort by element kind.
369370
=line: Sort by element line number.
370371
=name: Sort by element name.

llvm/tools/llvm-debuginfo-analyzer/Options.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ static cl::opt<LVSortMode, true> OutputSort(
198198
"output-sort", cl::cat(OutputCategory),
199199
cl::desc("Primary key when ordering logical view (default: line)."),
200200
cl::Hidden, cl::ZeroOrMore,
201-
values(clEnumValN(LVSortMode::Kind, "kind", "Sort by element kind."),
201+
values(clEnumValN(LVSortMode::None, "none",
202+
"Unsorted output (i.e. as read from input)."),
203+
clEnumValN(LVSortMode::Kind, "kind", "Sort by element kind."),
202204
clEnumValN(LVSortMode::Line, "line", "Sort by element line number."),
203205
clEnumValN(LVSortMode::Name, "name", "Sort by element name."),
204206
clEnumValN(LVSortMode::Offset, "offset", "Sort by element offset.")),

0 commit comments

Comments
 (0)