Changeset View
Changeset View
Standalone View
Standalone View
lib/Driver/ToolChains/Clang.cpp
Show First 20 Lines • Show All 5,267 Lines • ▼ Show 20 Lines | if (A->getOption().matches(options::OPT_moutline)) { | ||||
CmdArgs.push_back("-mllvm"); | CmdArgs.push_back("-mllvm"); | ||||
CmdArgs.push_back("-enable-machine-outliner=never"); | CmdArgs.push_back("-enable-machine-outliner=never"); | ||||
} | } | ||||
} | } | ||||
if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig, | if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig, | ||||
(TC.getTriple().isOSBinFormatELF() || | (TC.getTriple().isOSBinFormatELF() || | ||||
TC.getTriple().isOSBinFormatCOFF()) && | TC.getTriple().isOSBinFormatCOFF()) && | ||||
TC.useIntegratedAs())) | TC.useIntegratedAs() && | ||||
RawTriple.getOS() != llvm::Triple::NetBSD)) | |||||
CmdArgs.push_back("-faddrsig"); | CmdArgs.push_back("-faddrsig"); | ||||
// Finally add the compile command to the compilation. | // Finally add the compile command to the compilation. | ||||
if (Args.hasArg(options::OPT__SLASH_fallback) && | if (Args.hasArg(options::OPT__SLASH_fallback) && | ||||
Output.getType() == types::TY_Object && | Output.getType() == types::TY_Object && | ||||
(InputType == types::TY_C || InputType == types::TY_CXX)) { | (InputType == types::TY_C || InputType == types::TY_CXX)) { | ||||
auto CLCommand = | auto CLCommand = | ||||
getCLFallback()->GetCommand(C, JA, Output, Inputs, Args, LinkingOutput); | getCLFallback()->GetCommand(C, JA, Output, Inputs, Args, LinkingOutput); | ||||
▲ Show 20 Lines • Show All 878 Lines • Show Last 20 Lines |