diff options
author | Alexey Lapshin <a.v.lapshin@mail.ru> | 2022-07-25 20:08:46 +0300 |
---|---|---|
committer | Alexey Lapshin <a.v.lapshin@mail.ru> | 2022-07-26 15:25:51 +0300 |
commit | 0d191b7553e7efbf7ce57c77274b83c15b681933 (patch) | |
tree | cf60c95ae49bade6b027b9e53dff2a555a48fb46 /llvm/include | |
parent | 418d2338f9bad03e002ca1a301ce537102a2f142 (diff) | |
download | llvm-0d191b7553e7efbf7ce57c77274b83c15b681933.zip llvm-0d191b7553e7efbf7ce57c77274b83c15b681933.tar.gz llvm-0d191b7553e7efbf7ce57c77274b83c15b681933.tar.bz2 |
[Debuginfo][llvm-dwarfutil] Add check for unsupported debug sections.
Current DWARFLinker implementation does not support some debug sections
(mainly DWARF v5 sections). This patch adds diagnostic for such sections.
The warning would be displayed for critical(such that could not be removed)
sections and the source file would be skipped. Other unsupported sections
would be removed and warning message should be displayed. The zero exit
status would be returned for both cases.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D123623
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/DWARFLinker/DWARFLinker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/DWARFLinker/DWARFLinker.h b/llvm/include/llvm/DWARFLinker/DWARFLinker.h index 3961100..4729e5f 100644 --- a/llvm/include/llvm/DWARFLinker/DWARFLinker.h +++ b/llvm/include/llvm/DWARFLinker/DWARFLinker.h @@ -245,7 +245,7 @@ public: /// Link debug info for added objFiles. Object /// files are linked all together. - bool link(); + Error link(); /// A number of methods setting various linking options: |