[llvm-branch-commits] [llvm] 7a20436 - [DWARFLinker] Print the unsupport DWARF form as part of the warning
Jonas Devlieghere via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jan 8 18:55:48 PST 2021
Author: Jonas Devlieghere
Date: 2021-01-08T18:51:40-08:00
New Revision: 7a204362f5c6cb97308be543f77ace8d8285ffef
URL: https://github.com/llvm/llvm-project/commit/7a204362f5c6cb97308be543f77ace8d8285ffef
DIFF: https://github.com/llvm/llvm-project/commit/7a204362f5c6cb97308be543f77ace8d8285ffef.diff
LOG: [DWARFLinker] Print the unsupport DWARF form as part of the warning
Added:
Modified:
llvm/lib/DWARFLinker/DWARFLinker.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DWARFLinker/DWARFLinker.cpp b/llvm/lib/DWARFLinker/DWARFLinker.cpp
index e285773dfd5a..1595b31cb4f9 100644
--- a/llvm/lib/DWARFLinker/DWARFLinker.cpp
+++ b/llvm/lib/DWARFLinker/DWARFLinker.cpp
@@ -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;
More information about the llvm-branch-commits
mailing list