[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:18 PST 2024
================
@@ -30,6 +30,21 @@ class DWARFDebugAbbrev;
class DataExtractor;
struct DWARFSection;
+class OutputCategoryAggregator {
+private:
+ std::map<std::string, unsigned> Aggregation;
+ bool IncludeDetail;
+
+public:
+ OutputCategoryAggregator(bool includeDetail = false)
+ : IncludeDetail(includeDetail) {}
+ void EnableDetail() { IncludeDetail = true; }
+ void DisableDetail() { IncludeDetail = false; }
----------------
clayborg wrote:
Maybe just:
```
void SetDetail(bool e) { IncludeDetail = b; }
```
https://github.com/llvm/llvm-project/pull/79648
More information about the llvm-commits
mailing list