[llvm] Aggregate errors from llvm-dwarfutil --verify (PR #79648)

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 23:05:16 PST 2024


================
@@ -276,6 +276,14 @@ static cl::opt<bool>
                 cat(DwarfDumpCategory));
 static opt<bool> Verify("verify", desc("Verify the DWARF debug info."),
                         cat(DwarfDumpCategory));
+static opt<bool> OnlyAggregateErrors(
+    "only-aggregate-errors",
+    desc("Only display the aggregate errors when verifying."),
+    cat(DwarfDumpCategory));
+static opt<bool> NoAggregateErrors(
+    "no-aggregate-errors",
+    desc("Do not display the aggregate errors when verifying."),
+    cat(DwarfDumpCategory));
----------------
clayborg wrote:

Would it be easier to use just one option with an enum value? Something like:
```
--error-display full // Show all errors as we run into them + summarize at the end
--error-display summary // Display summary only
--error-display quiet // Show only a total error count, no detail and no summary
```

https://github.com/llvm/llvm-project/pull/79648


More information about the llvm-commits mailing list