This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Fix multiple -mllvm after D70378
ClosedPublic

Authored by MaskRay on Sep 28 2020, 6:26 PM.

Details

Summary

Fixes https://reviews.llvm.org/D70378#2299569 Multiple -mllvm is intended to be supported.

We don't have a proper test for -plugin-opt=-. This patch adds the test as well.

Diff Detail

Event Timeline

MaskRay created this revision.Sep 28 2020, 6:26 PM
MaskRay requested review of this revision.Sep 28 2020, 6:27 PM
MaskRay updated this revision to Diff 294858.Sep 28 2020, 6:30 PM

Improve a comment

MaskRay edited the summary of this revision. (Show Details)Sep 28 2020, 8:42 PM
MaskRay added a reviewer: grimar.

Thanks for the quick patch. I tested it and it works. LGTM.

aganea accepted this revision.Sep 29 2020, 10:09 AM

Looks good with one minor comment.

lld/ELF/Driver.cpp
1110

I would put this line just above the comment, because it has to do more with options in general, rather than LTO options specifically, but that's my preference.

This revision is now accepted and ready to land.Sep 29 2020, 10:09 AM
MaskRay updated this revision to Diff 295034.Sep 29 2020, 10:26 AM

Move ResetAllOptionOccurrences

MaskRay marked an inline comment as done.Sep 29 2020, 10:26 AM
This revision was landed with ongoing or failed builds.Sep 29 2020, 10:27 AM
This revision was automatically updated to reflect the committed changes.