diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2014-05-15 18:04:02 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2014-05-15 18:04:02 +0000 |
commit | 650c53fe2a98baa2aa753438a6144d40d0f75fca (patch) | |
tree | 6525150e9970f383f5263dff75f8fd80a5b14998 /lib | |
parent | 218bad2bc5292bec2a46d59e0f85d4c9fde05bf4 (diff) |
[obj2yaml][ELF] Do not print empty Link and Info fields for ELF sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Object/ELFYAML.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Object/ELFYAML.cpp b/lib/Object/ELFYAML.cpp index 75a4de0a7bf..c396f66ee65 100644 --- a/lib/Object/ELFYAML.cpp +++ b/lib/Object/ELFYAML.cpp @@ -650,8 +650,8 @@ static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { IO.mapRequired("Type", Section.Type); IO.mapOptional("Flags", Section.Flags, ELFYAML::ELF_SHF(0)); IO.mapOptional("Address", Section.Address, Hex64(0)); - IO.mapOptional("Link", Section.Link); - IO.mapOptional("Info", Section.Info); + IO.mapOptional("Link", Section.Link, StringRef()); + IO.mapOptional("Info", Section.Info, StringRef()); IO.mapOptional("AddressAlign", Section.AddressAlign, Hex64(0)); } |