Lines Matching refs:Args
169 InputArgList Args = OptTbl->ParseArgs(Argv, MissingArgIndex, MissingArgCount,
175 << Args.getArgString(MissingArgIndex) << MissingArgCount;
180 for (const Arg *A : Args.filtered(OPT_UNKNOWN)) {
181 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(Args);
188 Opts.Triple = llvm::Triple::normalize(Args.getLastArgValue(OPT_triple));
189 Opts.CPU = Args.getLastArgValue(OPT_target_cpu);
190 Opts.Features = Args.getAllArgValues(OPT_target_feature);
197 Opts.IncludePaths = Args.getAllArgValues(OPT_I);
198 Opts.NoInitialTextSection = Args.hasArg(OPT_n);
199 Opts.SaveTemporaryLabels = Args.hasArg(OPT_msave_temp_labels);
201 Opts.GenDwarfForAssembly = Args.hasArg(OPT_debug_info_kind_EQ);
202 Opts.CompressDebugSections = Args.hasArg(OPT_compress_debug_sections);
203 Opts.DwarfVersion = getLastArgIntValue(Args, OPT_dwarf_version_EQ, 0, Diags);
204 Opts.DwarfDebugFlags = Args.getLastArgValue(OPT_dwarf_debug_flags);
205 Opts.DwarfDebugProducer = Args.getLastArgValue(OPT_dwarf_debug_producer);
206 Opts.DebugCompilationDir = Args.getLastArgValue(OPT_fdebug_compilation_dir);
207 Opts.MainFileName = Args.getLastArgValue(OPT_main_file_name);
210 if (Args.hasArg(OPT_INPUT)) {
212 for (arg_iterator it = Args.filtered_begin(OPT_INPUT),
213 ie = Args.filtered_end();
219 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(Args);
224 Opts.LLVMArgs = Args.getAllArgValues(OPT_mllvm);
225 Opts.OutputPath = Args.getLastArgValue(OPT_o);
226 if (Arg *A = Args.getLastArg(OPT_filetype)) {
234 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name;
239 Opts.ShowHelp = Args.hasArg(OPT_help);
240 Opts.ShowVersion = Args.hasArg(OPT_version);
244 getLastArgIntValue(Args, OPT_output_asm_variant, 0, Diags);
245 Opts.ShowEncoding = Args.hasArg(OPT_show_encoding);
246 Opts.ShowInst = Args.hasArg(OPT_show_inst);
249 Opts.RelaxAll = Args.hasArg(OPT_mrelax_all);
250 Opts.NoExecStack = Args.hasArg(OPT_mno_exec_stack);
251 Opts.FatalWarnings = Args.hasArg(OPT_massembler_fatal_warnings);
252 Opts.RelocationModel = Args.getLastArgValue(OPT_mrelocation_model, "pic");
254 Args.hasArg(OPT_mincremental_linker_compatible);
498 const char **Args = new const char*[NumArgs + 2];
499 Args[0] = "clang (LLVM option parsing)";
501 Args[i + 1] = Asm.LLVMArgs[i].c_str();
502 Args[NumArgs + 1] = nullptr;
503 llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args);