This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj][test] - Merge dynsymtab-shlink.yaml to dynsym-section.yaml
ClosedPublic

Authored by grimar on Oct 28 2020, 5:07 AM.

Details

Summary

This simplifies the dynsymtab-shlink.yaml test (with use of macros)
and merges it into the dynsym-section.yaml test.

Diff Detail

Event Timeline

grimar created this revision.Oct 28 2020, 5:07 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: emaste. · View Herald Transcript
grimar requested review of this revision.Oct 28 2020, 5:07 AM
jhenderson added inline comments.Oct 29 2020, 1:46 AM
llvm/test/tools/yaml2obj/ELF/dynsym-section.yaml
57
60

If you used Link: [[LINK:<none>]] (or whatever the syntax is), that'll allow you to avoid the -DLINK="" bit here, right?

grimar updated this revision to Diff 301539.Oct 29 2020, 2:04 AM
grimar marked 2 inline comments as done.
  • Addressed review comments.
llvm/test/tools/yaml2obj/ELF/dynsym-section.yaml
60

No, because Link field is not Optional<>, it is StringRef. I can't use [[LINK:<none>]] currently.
Perhaps worth changing it to be Optional too.

jhenderson accepted this revision.Oct 29 2020, 2:08 AM

LGTM.

llvm/test/tools/yaml2obj/ELF/dynsym-section.yaml
60

Ah, that's a surprise. I'd expect a user not to understand the internal differences that prevent this, so changing it to be an Optional (in a future patch) would make sense to me.

This revision is now accepted and ready to land.Oct 29 2020, 2:08 AM
llvm/test/tools/yaml2obj/ELF/dynsym-section.yaml