[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:15 PST 2024


================
@@ -812,6 +821,15 @@ int main(int argc, char **argv) {
                           "-verbose is currently not supported";
     return 1;
   }
+  if (Verify && NoAggregateErrors && OnlyAggregateErrors) {
+    WithColor::error() << "incompatible arguments: specifying both "
+                          " -no-aggregate-errors, and -only-aggregate-errors "
+                          "is not supported";
+    return 1;
+  }
+  if (!Verify && (NoAggregateErrors || OnlyAggregateErrors))
+    WithColor::warning() << "-no-aggregate-errors and -only-aggregate-errors "
+                            "have no effect without -verify";
----------------
clayborg wrote:

change to match if we switch to using `--error-display` option

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


More information about the llvm-commits mailing list