Lines Matching refs:Args
161 std::unique_ptr<InputArgList> Args(
168 << Args->getArgString(MissingArgIndex) << MissingArgCount;
173 for (arg_iterator it = Args->filtered_begin(OPT_UNKNOWN),
174 ie = Args->filtered_end();
176 Diags.Report(diag::err_drv_unknown_argument) << (*it)->getAsString(*Args);
183 Opts.Triple = llvm::Triple::normalize(Args->getLastArgValue(OPT_triple));
184 Opts.CPU = Args->getLastArgValue(OPT_target_cpu);
185 Opts.Features = Args->getAllArgValues(OPT_target_feature);
192 Opts.IncludePaths = Args->getAllArgValues(OPT_I);
193 Opts.NoInitialTextSection = Args->hasArg(OPT_n);
194 Opts.SaveTemporaryLabels = Args->hasArg(OPT_msave_temp_labels);
195 Opts.GenDwarfForAssembly = Args->hasArg(OPT_g_Flag);
196 Opts.CompressDebugSections = Args->hasArg(OPT_compress_debug_sections);
197 if (Args->hasArg(OPT_gdwarf_2))
199 if (Args->hasArg(OPT_gdwarf_3))
201 if (Args->hasArg(OPT_gdwarf_4))
203 Opts.DwarfDebugFlags = Args->getLastArgValue(OPT_dwarf_debug_flags);
204 Opts.DwarfDebugProducer = Args->getLastArgValue(OPT_dwarf_debug_producer);
205 Opts.DebugCompilationDir = Args->getLastArgValue(OPT_fdebug_compilation_dir);
206 Opts.MainFileName = Args->getLastArgValue(OPT_main_file_name);
209 if (Args->hasArg(OPT_INPUT)) {
211 for (arg_iterator it = Args->filtered_begin(OPT_INPUT),
212 ie = Args->filtered_end(); it != ie; ++it, First=false) {
217 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(*Args);
222 Opts.LLVMArgs = Args->getAllArgValues(OPT_mllvm);
223 Opts.OutputPath = Args->getLastArgValue(OPT_o);
224 if (Arg *A = Args->getLastArg(OPT_filetype)) {
233 << A->getAsString(*Args) << Name;
238 Opts.ShowHelp = Args->hasArg(OPT_help);
239 Opts.ShowVersion = Args->hasArg(OPT_version);
243 getLastArgIntValue(*Args.get(), OPT_output_asm_variant, 0, Diags);
244 Opts.ShowEncoding = Args->hasArg(OPT_show_encoding);
245 Opts.ShowInst = Args->hasArg(OPT_show_inst);
248 Opts.RelaxAll = Args->hasArg(OPT_mrelax_all);
249 Opts.NoExecStack = Args->hasArg(OPT_mno_exec_stack);
473 const char **Args = new const char*[NumArgs + 2];
474 Args[0] = "clang (LLVM option parsing)";
476 Args[i + 1] = Asm.LLVMArgs[i].c_str();
477 Args[NumArgs + 1] = nullptr;
478 llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args);