This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Simplify stack-sizes.test test case.
ClosedPublic

Authored by grimar on Sep 19 2019, 5:14 AM.

Details

Summary

This is a follow-up for D67757,
which allows to describe .stack_sizes sections with a new
YAML syntax.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Sep 19 2019, 5:14 AM
This revision is now accepted and ready to land.Sep 24 2019, 3:48 AM
MaskRay accepted this revision.Sep 24 2019, 4:47 AM
grimar updated this revision to Diff 221545.Sep 24 2019, 7:55 AM
grimar retitled this revision from [llvm-readobj] - Simplify stack-sizes.test test case. to [llvm-readobj] - Support uniqued ".stack_sizes" and simplify stack-sizes.test test case..

I had to add a bit of code after rebasing this.
Problem is that when we have section names with a suffix, e.g. ".stack_sizes [1]",
we need to drop it, otherwise such name is not recognized properly and
section is not treated as special.

Can this be reviewed again, please?

grimar requested review of this revision.Sep 24 2019, 7:55 AM

The latest changes look good themselves, but should this extra issue you've uncovered have a direct yaml2obj test?

grimar planned changes to this revision.Sep 25 2019, 2:14 AM

The latest changes look good themselves, but should this extra issue you've uncovered have a direct yaml2obj test?

Yeah, you're right. I should have posted 2 patches, one for yaml2obj and keep this one for llvm-readobj test case untouched.
seems things have mixed in my head. I'll split.

grimar updated this revision to Diff 221726.Sep 25 2019, 5:13 AM
grimar retitled this revision from [llvm-readobj] - Support uniqued ".stack_sizes" and simplify stack-sizes.test test case. to [llvm-readobj] - Simplify stack-sizes.test test case..
grimar edited the summary of this revision. (Show Details)

Now all code changes are gone and patch is in the same state as it was accepted.
Going to commit it.

grimar accepted this revision.Sep 25 2019, 5:13 AM
This revision is now accepted and ready to land.Sep 25 2019, 5:13 AM
grimar removed a reviewer: grimar.Sep 25 2019, 5:13 AM
This revision now requires review to proceed.Sep 25 2019, 5:13 AM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 25 2019, 5:16 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 25 2019, 5:16 AM