From 4cc2113114d226757ce37b69dc6093bb17a5feb8 Mon Sep 17 00:00:00 2001 From: Armando Montanez Date: Fri, 21 Dec 2018 20:45:58 +0000 Subject: [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 | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/TextAPI') diff --git a/llvm/lib/TextAPI/ELF/TBEHandler.cpp b/llvm/lib/TextAPI/ELF/TBEHandler.cpp index dde980292a1..b621829d935 100644 --- a/llvm/lib/TextAPI/ELF/TBEHandler.cpp +++ b/llvm/lib/TextAPI/ELF/TBEHandler.cpp @@ -105,6 +105,7 @@ template <> struct MappingTraits { IO.mapRequired("Size", Symbol.Size); } IO.mapOptional("Undefined", Symbol.Undefined, false); + IO.mapOptional("Weak", Symbol.Weak, false); IO.mapOptional("Warning", Symbol.Warning); } -- cgit v1.2.3