Skip to content

Commit fb1f826

Browse files
author
Kevin Frei
committed
Cleaned up: Non-verbose output is downright succinct!
1 parent ee4de82 commit fb1f826

File tree

3 files changed

+410
-287
lines changed

3 files changed

+410
-287
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@ struct DWARFSection;
3232

3333
class OutputCategoryAggregator {
3434
private:
35-
std::map<std::string, int> Aggregator;
36-
bool Output;
35+
std::map<std::string, unsigned> Aggregation;
36+
bool CallDetail;
3737

3838
public:
39-
OutputCategoryAggregator(bool DetailedOutput = false)
40-
: Output(DetailedOutput) {}
41-
void EnableDetail() { Output = true; }
42-
void DisableDetail() { Output = false; }
39+
OutputCategoryAggregator(bool callDetail = false) : CallDetail(callDetail) {}
40+
void EnableDetail() { CallDetail = true; }
41+
void DisableDetail() { CallDetail = false; }
4342
void Report(StringRef s, std::function<void()> detailCallback);
44-
void DumpAggregation(raw_ostream *o);
43+
void HandleAggregate(std::function<void(StringRef, unsigned)> handleCounts);
4544
};
4645

4746
/// A class that verifies DWARF debug information given a DWARF Context.

0 commit comments

Comments
 (0)