This is an archive of the discontinued LLVM Phabricator instance.

[COFF, Mach-O] Include -mllvm options in thinlto cache key
ClosedPublic

Authored by thakis on Nov 14 2022, 11:26 AM.

Details

Summary

Like D134013, but for COFF and Mach-O.

Also expand the ELF test a bit. I at first didn't realize that getValue() for
-mllvm -foo=bar would return -foo=bar instead of just bar, and so
I wrote the test to check if we indeed get this wrong. We don't, but
having the test for it seems nice, so I'm including it.

Diff Detail

Event Timeline

thakis created this revision.Nov 14 2022, 11:26 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Nov 14 2022, 11:26 AM
thakis updated this revision to Diff 475233.Nov 14 2022, 11:50 AM

fix COFF test

thakis updated this revision to Diff 475234.Nov 14 2022, 11:50 AM

clang-format

thakis updated this revision to Diff 475235.Nov 14 2022, 11:51 AM

actually clang-format

MaskRay accepted this revision as: MaskRay.Nov 14 2022, 11:53 AM

Looks great!

This revision is now accepted and ready to land.Nov 14 2022, 11:53 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptNov 14 2022, 12:20 PM