diff options
author | Mikhail Maltsev <mikhail.maltsev@arm.com> | 2018-04-23 10:08:46 +0000 |
---|---|---|
committer | Mikhail Maltsev <mikhail.maltsev@arm.com> | 2018-04-23 10:08:46 +0000 |
commit | 53b59bc2474592d8f536333bae403e266ddda2e6 (patch) | |
tree | edb4c377c602dac014e11a855db82bcac5233483 /lib/Frontend/CompilerInvocation.cpp | |
parent | 5456d852f4e0114761aa4eefa0f65a05fdd65683 (diff) | |
download | clang-53b59bc2474592d8f536333bae403e266ddda2e6.tar.gz |
[CodeGen] Reland r330442: Add an option to suppress output of llvm.ident
The test case in the original patch was overly contrained and
failed on PPC targets.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 67e15b41ad..f904e65e72 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1112,6 +1112,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.EmitCheckPathComponentsToStrip = getLastArgIntValue( Args, OPT_fsanitize_undefined_strip_path_components_EQ, 0, Diags); + Opts.EmitVersionIdentMetadata = Args.hasFlag(OPT_Qy, OPT_Qn, true); + return Success; } |