[TextAPI][elfabi] Fix YAML support for weak symbols
authorArmando Montanez <amontanez@google.com>
Fri, 21 Dec 2018 20:45:58 +0000 (20:45 +0000)
committerArmando Montanez <amontanez@google.com>
Fri, 21 Dec 2018 20:45:58 +0000 (20:45 +0000)
commit4cc2113114d226757ce37b69dc6093bb17a5feb8
tree865885278173ce2254c42863ca9b9216b1ce1722
parentd8c17673d7ad38ca8722134456318d44c3499384
[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
llvm/lib/TextAPI/ELF/TBEHandler.cpp
llvm/unittests/TextAPI/ELFYAMLTest.cpp