Skip to content

Commit 7a20436

Browse files
committed
[DWARFLinker] Print the unsupport DWARF form as part of the warning
1 parent f62b93b commit 7a20436

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/DWARFLinker/DWARFLinker.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,9 +1217,10 @@ unsigned DWARFLinker::DIECloner::cloneAttribute(
12171217
return cloneScalarAttribute(Die, InputDIE, File, Unit, AttrSpec, Val,
12181218
AttrSize, Info);
12191219
default:
1220-
Linker.reportWarning(
1221-
"Unsupported attribute form in cloneAttribute. Dropping.", File,
1222-
&InputDIE);
1220+
Linker.reportWarning("Unsupported attribute form " +
1221+
dwarf::FormEncodingString(AttrSpec.Form) +
1222+
" in cloneAttribute. Dropping.",
1223+
File, &InputDIE);
12231224
}
12241225

12251226
return 0;

0 commit comments

Comments
 (0)