This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC][XCOFF] Verify symbol table in xcoff object files. [NFC]
ClosedPublic

Authored by sfertile on Aug 29 2019, 7:27 AM.

Details

Summary

Extend the common/local-common testing for object files to also verify the symbol table now that the needed functionality has landed in llvm-readobj.

Diff Detail

Repository
rL LLVM

Event Timeline

sfertile created this revision.Aug 29 2019, 7:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2019, 7:27 AM
jasonliu added inline comments.Aug 29 2019, 8:01 AM
llvm/test/CodeGen/PowerPC/aix-xcoff-common.ll
69 ↗(On Diff #217871)

These Index could easily change when we add more functionality into XCOFF object writer. Do we care about making the test case more robust?

sfertile marked an inline comment as done.Sep 3 2019, 7:29 AM
sfertile added inline comments.
llvm/test/CodeGen/PowerPC/aix-xcoff-common.ll
69 ↗(On Diff #217871)

What do you have in mind?

sfertile updated this revision to Diff 218456.Sep 3 2019, 7:49 AM

Used numeric substitution block for symbol table indexes.

sfertile marked an inline comment as done and an inline comment as not done.Sep 3 2019, 8:02 AM
sfertile added inline comments.
llvm/test/CodeGen/PowerPC/aix-xcoff-common.ll
69 ↗(On Diff #217871)

Ok, I found the numeric substitution blocks in the Filecheck docs. I wasn't aware of that before, thanks.

jasonliu accepted this revision.Sep 3 2019, 2:54 PM

LGTM.

This revision is now accepted and ready to land.Sep 3 2019, 2:54 PM
This revision was automatically updated to reflect the committed changes.
sfertile marked an inline comment as not done.