Skip to content

Commit 224145e

Browse files
[DWARFDump][nfc] Fix incorrect comment (#81276)
It claimed to dump all sections by default, but this hasn't been true since 2017: https://reviews.llvm.org/D37717
1 parent 8f23464 commit 224145e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,9 @@ int main(int argc, char **argv) {
845845

846846
bool OffsetRequested = false;
847847

848-
// Defaults to dumping all sections, unless brief mode is specified in which
849-
// case only the .debug_info section in dumped.
848+
// Defaults to dumping only debug_info, unless: A) verbose mode is specified,
849+
// in which case all sections are dumped, or B) a specific section is
850+
// requested.
850851
#define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME, OPTION) \
851852
if (Dump##ENUM_NAME.IsRequested) { \
852853
DumpType |= DIDT_##ENUM_NAME; \

0 commit comments

Comments
 (0)