[llvm] llvm-dwarfdump --verify aggregated output to JSON file (PR #81762)

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 09:12:47 PST 2024


================
@@ -286,6 +286,8 @@ static opt<bool> Verify("verify", desc("Verify the DWARF debug info."),
                         cat(DwarfDumpCategory));
 static opt<ErrorDetailLevel> ErrorDetails(
     "error-display", init(Unspecified),
+    desc("Set the level of detail and summary to display when verifying "
+         "(implies --verify)"),
     values(clEnumValN(NoDetailsOrSummary, "quiet",
                       "Only display whether errors occurred."),
            clEnumValN(NoDetailsOnlySummary, "summary",
----------------
clayborg wrote:

how about we just add a new `--error-detail` type named `json-summary`? The `summary` will emit text and the `json-summary` will emit the summary as json. This avoids the new and extra option and how to name it. Thoughts?

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


More information about the llvm-commits mailing list