Lines Matching refs:JA
822 const JobAction *JA = cast<JobAction>(&FailingCommand->getSource()); in ExecuteCompilation() local
823 C.CleanupFileMap(C.getResultFiles(), JA, true); in ExecuteCompilation()
827 C.CleanupFileMap(C.getFailureResultFiles(), JA, true); in ExecuteCompilation()
1889 const JobAction *JA, in selectToolForJob() argument
1903 isa<AssembleJobAction>(JA) && Inputs->size() == 1 && in selectToolForJob()
1939 if (isa<BackendJobAction>(JA)) { in selectToolForJob()
1961 ToolForJob = TC->SelectTool(*JA); in selectToolForJob()
2063 const JobAction *JA = cast<JobAction>(A); in BuildJobsForActionNoCache() local
2066 selectToolForJob(C, isSaveTempsEnabled(), embedBitcodeEnabled(), TC, JA, in BuildJobsForActionNoCache()
2099 if (JA->getType() == types::TY_dSYM) in BuildJobsForActionNoCache()
2108 if (JA->getType() == types::TY_Nothing) in BuildJobsForActionNoCache()
2111 Result = InputInfo(A, GetNamedOutputPath(C, *JA, BaseInput, BoundArch, in BuildJobsForActionNoCache()
2125 T->ConstructJob(C, *JA, Result, InputInfos, in BuildJobsForActionNoCache()
2169 const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA, in GetNamedOutputPath() argument
2175 if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) { in GetNamedOutputPath()
2177 return C.addResultFile(FinalOutput->getValue(), &JA); in GetNamedOutputPath()
2182 assert(AtTopLevel && isa<PreprocessJobAction>(JA)); in GetNamedOutputPath()
2189 &JA); in GetNamedOutputPath()
2194 (isa<PreprocessJobAction>(JA) || JA.getType() == types::TY_ModuleFile)) in GetNamedOutputPath()
2198 if (JA.getType() == types::TY_PP_Asm && in GetNamedOutputPath()
2205 MakeCLOutputFilename(C.getArgs(), FaValue, BaseName, JA.getType()), in GetNamedOutputPath()
2206 &JA); in GetNamedOutputPath()
2216 Split.first, types::getTypeTempSuffix(JA.getType(), IsCLMode())); in GetNamedOutputPath()
2224 if (isa<DsymutilJobAction>(JA) || isa<VerifyJobAction>(JA)) in GetNamedOutputPath()
2232 if (JA.getType() == types::TY_Object && in GetNamedOutputPath()
2241 } else if (JA.getType() == types::TY_Image && in GetNamedOutputPath()
2251 } else if (JA.getType() == types::TY_Image) { in GetNamedOutputPath()
2264 } else if (JA.getType() == types::TY_PCH && IsCLMode()) { in GetNamedOutputPath()
2267 const char *Suffix = types::getTypeTempSuffix(JA.getType(), IsCLMode()); in GetNamedOutputPath()
2271 if (!types::appendSuffixForType(JA.getType())) in GetNamedOutputPath()
2282 JA.getType() == types::TY_LLVM_BC) in GetNamedOutputPath()
2291 JA.getType() != types::TY_PCH) { in GetNamedOutputPath()
2313 Split.first, types::getTypeTempSuffix(JA.getType(), IsCLMode())); in GetNamedOutputPath()
2319 if (JA.getType() == types::TY_PCH && !IsCLMode()) { in GetNamedOutputPath()
2325 return C.addResultFile(C.getArgs().MakeArgString(BasePath.c_str()), &JA); in GetNamedOutputPath()
2327 return C.addResultFile(NamedOutput, &JA); in GetNamedOutputPath()
2569 bool Driver::ShouldUseClangCompiler(const JobAction &JA) const { in ShouldUseClangCompiler()
2571 if (JA.size() != 1 || in ShouldUseClangCompiler()
2572 !types::isAcceptedByClang((*JA.input_begin())->getType())) in ShouldUseClangCompiler()
2576 if (!isa<PreprocessJobAction>(JA) && !isa<PrecompileJobAction>(JA) && in ShouldUseClangCompiler()
2577 !isa<CompileJobAction>(JA) && !isa<BackendJobAction>(JA)) in ShouldUseClangCompiler()