File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
llvm/include/llvm/DebugInfo/DWARF Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,14 @@ class DWARFVerifier {
101
101
bool IsMachOObject;
102
102
using ReferenceMap = std::map<uint64_t , std::set<uint64_t >>;
103
103
104
- raw_ostream &aggregate (const char *);
104
+ // For errors that have sensible names as the first (or only) string
105
+ // you can just use aggregate() << "DIE looks stupid: " << details...
106
+ // and it will get aggregated as "DIE looks stupid".
105
107
ErrorAggregator &aggregate ();
108
+ // For errors that have details before good 'categories', you'll need
109
+ // to provide the aggregated name, like this:
110
+ // aggregate("CU index is busted") << "CU index [" << n << "] is busted"
111
+ raw_ostream &aggregate (const char *);
106
112
raw_ostream &error () const ;
107
113
raw_ostream &warn () const ;
108
114
raw_ostream ¬e () const ;
You can’t perform that action at this time.
0 commit comments