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 | 8d59c8da4108be8df2dd35a229818eddb821c61f (patch) | |
tree | ffcafeb8a17b7f71540f7695f3cc8c86f154c21a /llvm/lib/Object/ELFYAML.cpp | |
parent | bcbed0a549a9207292da3b14c6095943c9509227 (diff) | |
download | bcm5719-llvm-8d59c8da4108be8df2dd35a229818eddb821c61f.tar.gz bcm5719-llvm-8d59c8da4108be8df2dd35a229818eddb821c61f.zip |
[obj2yaml][ELF] Do not print empty Link and Info fields for ELF sections.
llvm-svn: 208905
Diffstat (limited to 'llvm/lib/Object/ELFYAML.cpp')
-rw-r--r-- | llvm/lib/Object/ELFYAML.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/ELFYAML.cpp b/llvm/lib/Object/ELFYAML.cpp index 75a4de0a7bf..c396f66ee65 100644 --- a/llvm/lib/Object/ELFYAML.cpp +++ b/llvm/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)); } |