summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ELFYAML.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-05-15 18:04:02 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-05-15 18:04:02 +0000
commit8d59c8da4108be8df2dd35a229818eddb821c61f (patch)
treeffcafeb8a17b7f71540f7695f3cc8c86f154c21a /llvm/lib/Object/ELFYAML.cpp
parentbcbed0a549a9207292da3b14c6095943c9509227 (diff)
downloadbcm5719-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.cpp4
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));
}
OpenPOWER on IntegriCloud