Skip to content

Commit

Permalink
Cleaned up: Non-verbose output is downright succinct!
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Frei committed Jan 25, 2024
1 parent ee4de82 commit fb1f826
Show file tree
Hide file tree
Showing 3 changed files with 410 additions and 287 deletions.
13 changes: 6 additions & 7 deletions llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ struct DWARFSection;

class OutputCategoryAggregator {
private:
std::map<std::string, int> Aggregator;
bool Output;
std::map<std::string, unsigned> Aggregation;
bool CallDetail;

public:
OutputCategoryAggregator(bool DetailedOutput = false)
: Output(DetailedOutput) {}
void EnableDetail() { Output = true; }
void DisableDetail() { Output = false; }
OutputCategoryAggregator(bool callDetail = false) : CallDetail(callDetail) {}
void EnableDetail() { CallDetail = true; }
void DisableDetail() { CallDetail = false; }
void Report(StringRef s, std::function<void()> detailCallback);
void DumpAggregation(raw_ostream *o);
void HandleAggregate(std::function<void(StringRef, unsigned)> handleCounts);
};

/// A class that verifies DWARF debug information given a DWARF Context.
Expand Down
Loading

0 comments on commit fb1f826

Please sign in to comment.