diff options
author | Steven Wu <stevenwu@apple.com> | 2020-07-14 14:39:51 -0700 |
---|---|---|
committer | Steven Wu <stevenwu@apple.com> | 2020-07-14 14:40:43 -0700 |
commit | 2b42080b51c9a0c5ed733b30da165774dcd0d595 (patch) | |
tree | e4b02b10eb72032978d71aec9d3ec3748d031e65 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 226866e115de652b6fbc8f8195881a529ccb4b01 (diff) | |
download | llvm-2b42080b51c9a0c5ed733b30da165774dcd0d595.zip llvm-2b42080b51c9a0c5ed733b30da165774dcd0d595.tar.gz llvm-2b42080b51c9a0c5ed733b30da165774dcd0d595.tar.bz2 |
[clang] Teach -fembed-bitcode option not to embed W_value Group
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.
Reviewers: zixuw, arphaman
Reviewed By: zixuw
Subscribers: jkorous, dexonsmith, ributzka, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D83813
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 863c6b3..75d7cf5 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1086,8 +1086,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, A->getOption().getID() == options::OPT_INPUT || A->getOption().getID() == options::OPT_x || A->getOption().getID() == options::OPT_fembed_bitcode || - (A->getOption().getGroup().isValid() && - A->getOption().getGroup().getID() == options::OPT_W_Group)) + A->getOption().matches(options::OPT_W_Group)) continue; ArgStringList ASL; A->render(Args, ASL); |