[llvm] 224145e - [DWARFDump][nfc] Fix incorrect comment (#81276)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 16:01:45 PST 2024
Author: Felipe de Azevedo Piovezan
Date: 2024-02-09T16:01:42-08:00
New Revision: 224145ee882e32aaa1fae9ae88698cf1b07b22e4
URL: https://github.com/llvm/llvm-project/commit/224145ee882e32aaa1fae9ae88698cf1b07b22e4
DIFF: https://github.com/llvm/llvm-project/commit/224145ee882e32aaa1fae9ae88698cf1b07b22e4.diff
LOG: [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
Added:
Modified:
llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index 559e7a60489834..8cdd84bcc867cb 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -845,8 +845,9 @@ int main(int argc, char **argv) {
bool OffsetRequested = false;
- // Defaults to dumping all sections, unless brief mode is specified in which
- // case only the .debug_info section in dumped.
+ // Defaults to dumping only debug_info, unless: A) verbose mode is specified,
+ // in which case all sections are dumped, or B) a specific section is
+ // requested.
#define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME, OPTION) \
if (Dump##ENUM_NAME.IsRequested) { \
DumpType |= DIDT_##ENUM_NAME; \
More information about the llvm-commits
mailing list