diff options
author | Armando Montanez <amontanez@google.com> | 2018-12-21 20:45:58 +0000 |
---|---|---|
committer | Armando Montanez <amontanez@google.com> | 2018-12-21 20:45:58 +0000 |
commit | 4cc2113114d226757ce37b69dc6093bb17a5feb8 (patch) | |
tree | 865885278173ce2254c42863ca9b9216b1ce1722 /llvm/lib/TextAPI/ELF/TBEHandler.cpp | |
parent | d8c17673d7ad38ca8722134456318d44c3499384 (diff) | |
download | llvm-4cc2113114d226757ce37b69dc6093bb17a5feb8.zip llvm-4cc2113114d226757ce37b69dc6093bb17a5feb8.tar.gz llvm-4cc2113114d226757ce37b69dc6093bb17a5feb8.tar.bz2 |
[TextAPI][elfabi] Fix YAML support for weak symbols
Weak symbols are supposed to be supported in the ELF TextAPI
implementation, but the YAML handler didn't read or write the `Weak`
member of ELFSymbol. This change adds the YAML mapping and updates tests
to ensure correct behavior.
Differential Revision: https://reviews.llvm.org/D56020
llvm-svn: 349950
Diffstat (limited to 'llvm/lib/TextAPI/ELF/TBEHandler.cpp')
-rw-r--r-- | llvm/lib/TextAPI/ELF/TBEHandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/TextAPI/ELF/TBEHandler.cpp b/llvm/lib/TextAPI/ELF/TBEHandler.cpp index dde9802..b621829 100644 --- a/llvm/lib/TextAPI/ELF/TBEHandler.cpp +++ b/llvm/lib/TextAPI/ELF/TBEHandler.cpp @@ -105,6 +105,7 @@ template <> struct MappingTraits<ELFSymbol> { IO.mapRequired("Size", Symbol.Size); } IO.mapOptional("Undefined", Symbol.Undefined, false); + IO.mapOptional("Weak", Symbol.Weak, false); IO.mapOptional("Warning", Symbol.Warning); } |