[llvm] [llvm-gsymutil] Print one-time DWO file missing warning under --quiet flag (PR #79882)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 30 12:59:03 PST 2024
================
@@ -537,17 +537,27 @@ void DwarfTransformer::handleDie(raw_ostream *OS, CUInfo &CUI, DWARFDie Die) {
Error DwarfTransformer::convert(uint32_t NumThreads, raw_ostream *OS) {
size_t NumBefore = Gsym.getNumFunctionInfos();
+ std::once_flag flag;
auto getDie = [&](DWARFUnit &DwarfUnit) -> DWARFDie {
DWARFDie ReturnDie = DwarfUnit.getUnitDIE(false);
if (DwarfUnit.getDWOId()) {
DWARFUnit *DWOCU = DwarfUnit.getNonSkeletonUnitDIE(false).getDwarfUnit();
- if (OS && !DWOCU->isDWOUnit()) {
- std::string DWOName = dwarf::toString(
- DwarfUnit.getUnitDIE().find(
- {dwarf::DW_AT_dwo_name, dwarf::DW_AT_GNU_dwo_name}),
- "");
- *OS << "warning: Unable to retrieve DWO .debug_info section for "
- << DWOName << "\n";
+ if (!DWOCU->isDWOUnit()) {
----------------
ayermolo wrote:
Looks like there is --verbose option. Maybe have the same path for default verbosity and no OS, and print all the files for higher verbosity?
https://github.com/llvm/llvm-project/pull/79882
More information about the llvm-commits
mailing list