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

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 11:11:40 PST 2024


================
@@ -2026,12 +2028,35 @@ void OutputCategoryAggregator::EnumerateResults(
 }
 
 void DWARFVerifier::summarize() {
-  if (ErrorCategory.GetNumCategories() && DumpOpts.ShowAggregateErrors) {
+  if (!ErrorCategory.GetNumCategories())
+    return;
----------------
clayborg wrote:

If the user is asking for JSON output, we need to give them some JSON. Maybe we give always give them an total error count, and if the total error count is non-zero, it will include the "error-categories" top level key value pair, but if zero then we don't.

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


More information about the llvm-commits mailing list