This is an archive of the discontinued LLVM Phabricator instance.

[clang] Teach -fembed-bitcode option not to embed W_value Group
ClosedPublic

Authored by steven_wu on Jul 14 2020, 2:04 PM.

Details

Summary

-fembed-bitcode options doesn't embed warning options since they are
useless to code generation. Make sure it handles the W_value group and
not embed those options in the output.

Diff Detail

Event Timeline

steven_wu created this revision.Jul 14 2020, 2:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2020, 2:04 PM
zixuw added a comment.Jul 14 2020, 2:16 PM

Would llvm::Option::matches be more appropriate than getID and checking for equality here? Option::matches tracks subgroups correctly, without having to explicitly check for W_value_Group.

steven_wu updated this revision to Diff 277975.EditedJul 14 2020, 2:20 PM

Use Option::matches instead.

zixuw accepted this revision.Jul 14 2020, 2:33 PM

LGTM

This revision is now accepted and ready to land.Jul 14 2020, 2:33 PM
This revision was automatically updated to reflect the committed changes.