Skip to content

Commit 1517df0

Browse files
author
Kevin Frei
committed
Added a warning for the new flags
1 parent 9d7f00c commit 1517df0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,10 +1630,11 @@ unsigned DWARFVerifier::verifyNameIndexEntries(
16301630
++NumErrors;
16311631
}
16321632
}
1633-
handleAllErrors(EntryOr.takeError(),
1634-
[&](const DWARFDebugNames::SentinelError &) {
1635-
if (NumEntries > 0)
1636-
return;
1633+
handleAllErrors(
1634+
EntryOr.takeError(),
1635+
[&](const DWARFDebugNames::SentinelError &) {
1636+
if (NumEntries > 0)
1637+
return;
16371638
ErrorCategory.Report(
16381639
"NameIndex Name is not associated with any entries", [&]() {
16391640
error() << formatv("Name Index @ {0:x}: Name {1} ({2}) is "

llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,9 @@ int main(int argc, char **argv) {
827827
"is not supported";
828828
return 1;
829829
}
830+
if (!Verify && (NoAggregateErrors || OnlyAggregateErrors))
831+
WithColor::warning() << "-no-aggregate-errors and -only-aggregate-errors "
832+
"have no effect without -verify";
830833

831834
std::error_code EC;
832835
ToolOutputFile OutputFile(OutputFilename, EC, sys::fs::OF_TextWithCRLF);

0 commit comments

Comments
 (0)