Lines Matching refs:TheDriver
134 static bool SetBackdoorDriverOutputsFromEnvVars(Driver &TheDriver) { in SetBackdoorDriverOutputsFromEnvVars() argument
135 TheDriver.CCPrintOptions = in SetBackdoorDriverOutputsFromEnvVars()
137 TheDriver.CCPrintOptionsFilename); in SetBackdoorDriverOutputsFromEnvVars()
139 TheDriver.CCPrintHeadersFilename)) { in SetBackdoorDriverOutputsFromEnvVars()
140 TheDriver.CCPrintHeadersFormat = HIFMT_Textual; in SetBackdoorDriverOutputsFromEnvVars()
141 TheDriver.CCPrintHeadersFiltering = HIFIL_None; in SetBackdoorDriverOutputsFromEnvVars()
145 TheDriver.CCPrintHeadersFilename); in SetBackdoorDriverOutputsFromEnvVars()
147 TheDriver.CCPrintHeadersFormat = in SetBackdoorDriverOutputsFromEnvVars()
149 if (!TheDriver.CCPrintHeadersFormat) { in SetBackdoorDriverOutputsFromEnvVars()
150 TheDriver.Diag(clang::diag::err_drv_print_header_env_var) in SetBackdoorDriverOutputsFromEnvVars()
158 TheDriver.Diag(clang::diag::err_drv_print_header_env_var) in SetBackdoorDriverOutputsFromEnvVars()
163 if ((TheDriver.CCPrintHeadersFormat == HIFMT_Textual && in SetBackdoorDriverOutputsFromEnvVars()
165 (TheDriver.CCPrintHeadersFormat == HIFMT_JSON && in SetBackdoorDriverOutputsFromEnvVars()
167 TheDriver.Diag(clang::diag::err_drv_print_header_env_var_combination) in SetBackdoorDriverOutputsFromEnvVars()
171 TheDriver.CCPrintHeadersFiltering = Filtering; in SetBackdoorDriverOutputsFromEnvVars()
175 TheDriver.CCLogDiagnostics = in SetBackdoorDriverOutputsFromEnvVars()
177 TheDriver.CCLogDiagnosticsFilename); in SetBackdoorDriverOutputsFromEnvVars()
178 TheDriver.CCPrintProcessStats = in SetBackdoorDriverOutputsFromEnvVars()
180 TheDriver.CCPrintStatReportFilename); in SetBackdoorDriverOutputsFromEnvVars()
181 TheDriver.CCPrintInternalStats = in SetBackdoorDriverOutputsFromEnvVars()
183 TheDriver.CCPrintInternalStatReportFilename); in SetBackdoorDriverOutputsFromEnvVars()
337 Driver TheDriver(Path, llvm::sys::getDefaultTargetTriple(), Diags); in clang_main() local
339 TheDriver.setTargetAndMode(TargetAndMode); in clang_main()
346 TheDriver.setPrependArg(ToolContext.PrependArg); in clang_main()
350 if (!SetBackdoorDriverOutputsFromEnvVars(TheDriver)) in clang_main()
354 TheDriver.CC1Main = [ToolContext](SmallVectorImpl<const char *> &ArgV) { in clang_main()
361 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(Args)); in clang_main()
391 Res = TheDriver.ExecuteCompilation(*C, FailingCommands); in clang_main()
426 TheDriver.maybeGenerateCompilationDiagnostics(CommandStatus, ReproLevel, in clang_main()