diff options
author | George Rimar <grimar@accesssoftek.com> | 2019-06-19 08:57:38 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2019-06-19 08:57:38 +0000 |
commit | b6e20937b38a5a55331c3ea56c5a053f9cae8509 (patch) | |
tree | 3e30741bd141577c7dd9dab39048546cd642b923 /llvm/lib/ObjectYAML | |
parent | af22e071ca04268a777281cc6e284efccda2dc6b (diff) | |
download | bcm5719-llvm-b6e20937b38a5a55331c3ea56c5a053f9cae8509.tar.gz bcm5719-llvm-b6e20937b38a5a55331c3ea56c5a053f9cae8509.zip |
[yaml2obj/obj2yaml] - Make RawContentSection::Info Optional<>
This allows to customize this field for "implicit" sections properly.
Differential revision: https://reviews.llvm.org/D63487
llvm-svn: 363777
Diffstat (limited to 'llvm/lib/ObjectYAML')
-rw-r--r-- | llvm/lib/ObjectYAML/ELFYAML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp index e0b52d1fc33..ac3e3e577ea 100644 --- a/llvm/lib/ObjectYAML/ELFYAML.cpp +++ b/llvm/lib/ObjectYAML/ELFYAML.cpp @@ -917,7 +917,7 @@ static void sectionMapping(IO &IO, ELFYAML::RawContentSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Content", Section.Content); IO.mapOptional("Size", Section.Size); - IO.mapOptional("Info", Section.Info, Hex64(0)); + IO.mapOptional("Info", Section.Info); } static void sectionMapping(IO &IO, ELFYAML::NoBitsSection &Section) { |