This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Remove --allow-stripped option
ClosedPublic

Authored by nhuhuan on Jul 18 2022, 12:33 PM.

Details

Summary

AllowStripped has not been used in BOLT.
This option is replaced by actively detecting stripped binary.

Test Plan:

Diff Detail

Event Timeline

nhuhuan created this revision.Jul 18 2022, 12:33 PM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
nhuhuan requested review of this revision.Jul 18 2022, 12:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 12:33 PM

I don't think --allow-stripped option is used anymore and it's okay to remove it. But the option changes the behavior for handling the error case and hence the change is not NFC. Could you retitle to "[BOLT] Remove --allow-stripped option"?

bolt/lib/Rewrite/RewriteInstance.cpp
2814
nhuhuan retitled this revision from [BOLT][NFC] Remove opts::AllowStripped to [BOLT] Remove --allow-stripped option.Jul 25 2022, 11:22 PM
nhuhuan updated this revision to Diff 447576.Jul 25 2022, 11:28 PM

Remove trailing dot

nhuhuan marked an inline comment as done.Jul 25 2022, 11:28 PM
Amir accepted this revision.Jul 26 2022, 11:49 AM

Accepting per Maksim's comment that it's OK to remove the option.

This revision is now accepted and ready to land.Jul 26 2022, 11:49 AM
This revision was automatically updated to reflect the committed changes.