summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-06-19 08:57:38 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-06-19 08:57:38 +0000
commitb6e20937b38a5a55331c3ea56c5a053f9cae8509 (patch)
tree3e30741bd141577c7dd9dab39048546cd642b923 /llvm/lib/ObjectYAML
parentaf22e071ca04268a777281cc6e284efccda2dc6b (diff)
downloadbcm5719-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.cpp2
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) {
OpenPOWER on IntegriCloud