This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj,obj2yaml] - Make Symbol::Section field optional.
ClosedPublic

Authored by grimar on Dec 3 2020, 3:47 AM.

Details

Summary

This is similar to what we did earlier for fields of the Section class.

When a field is optional we can use the =<none> syntax in macros.

This was splitted from D92478.

Diff Detail

Event Timeline

grimar created this revision.Dec 3 2020, 3:47 AM
Herald added a project: Restricted Project. · View Herald Transcript
MaskRay accepted this revision.Dec 3 2020, 10:33 PM
MaskRay retitled this revision from [yaml2obj,obj2yaml] - Make Symbol::Section field to be optional. to [yaml2obj,obj2yaml] - Make Symbol::Section field optional..
MaskRay added inline comments.
llvm/test/tools/yaml2obj/ELF/dynamic-symbols.yaml
79

You may need a test where Section: is empty

This revision is now accepted and ready to land.Dec 3 2020, 10:34 PM
grimar updated this revision to Diff 309472.Dec 4 2020, 12:15 AM
grimar marked an inline comment as done.
  • Addressed review comment.
llvm/test/tools/yaml2obj/ELF/dynamic-symbols.yaml
79

I've added this test.

This revision was automatically updated to reflect the committed changes.