r334673 - Driver: De-duplicate some code. NFCI.
Peter Collingbourne via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 13 17:03:41 PDT 2018
Author: pcc
Date: Wed Jun 13 17:03:41 2018
New Revision: 334673
URL: http://llvm.org/viewvc/llvm-project?rev=334673&view=rev
Log:
Driver: De-duplicate some code. NFCI.
Modified:
cfe/trunk/lib/Driver/ToolChains/Clang.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/Clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Clang.cpp?rev=334673&r1=334672&r2=334673&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Clang.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Clang.cpp Wed Jun 13 17:03:41 2018
@@ -3501,8 +3501,7 @@ void Clang::ConstructJob(Compilation &C,
Args.hasArg(options::OPT_dA))
CmdArgs.push_back("-masm-verbose");
- if (!Args.hasFlag(options::OPT_fintegrated_as, options::OPT_fno_integrated_as,
- IsIntegratedAssemblerDefault))
+ if (!getToolChain().useIntegratedAs())
CmdArgs.push_back("-no-integrated-as");
if (Args.hasArg(options::OPT_fdebug_pass_structure)) {
More information about the cfe-commits
mailing list