[DWARFLinker] Print the unsupport DWARF form as part of the warning

This commit is contained in:
Jonas Devlieghere 2021-01-08 11:35:46 -08:00
parent f62b93b9a2
commit 7a204362f5
1 changed files with 4 additions and 3 deletions

View File

@ -1217,9 +1217,10 @@ unsigned DWARFLinker::DIECloner::cloneAttribute(
return cloneScalarAttribute(Die, InputDIE, File, Unit, AttrSpec, Val,
AttrSize, Info);
default:
Linker.reportWarning(
"Unsupported attribute form in cloneAttribute. Dropping.", File,
&InputDIE);
Linker.reportWarning("Unsupported attribute form " +
dwarf::FormEncodingString(AttrSpec.Form) +
" in cloneAttribute. Dropping.",
File, &InputDIE);
}
return 0;