Home | History | Annotate | Download | only in driver

Lines Matching refs:Args

150   OwningPtr<InputArgList> Args(
156 << Args->getArgString(MissingArgIndex) << MissingArgCount;
161 for (arg_iterator it = Args->filtered_begin(cc1asoptions::OPT_UNKNOWN),
162 ie = Args->filtered_end(); it != ie; ++it) {
163 Diags.Report(diag::err_drv_unknown_argument) << (*it) ->getAsString(*Args);
170 Opts.Triple = llvm::Triple::normalize(Args->getLastArgValue(OPT_triple));
171 Opts.CPU = Args->getLastArgValue(OPT_target_cpu);
172 Opts.Features = Args->getAllArgValues(OPT_target_feature);
179 Opts.IncludePaths = Args->getAllArgValues(OPT_I);
180 Opts.NoInitialTextSection = Args->hasArg(OPT_n);
181 Opts.SaveTemporaryLabels = Args->hasArg(OPT_L);
182 Opts.GenDwarfForAssembly = Args->hasArg(OPT_g);
183 Opts.DwarfDebugFlags = Args->getLastArgValue(OPT_dwarf_debug_flags);
186 if (Args->hasArg(OPT_INPUT)) {
188 for (arg_iterator it = Args->filtered_begin(OPT_INPUT),
189 ie = Args->filtered_end(); it != ie; ++it, First=false) {
192 Opts.InputFile = A->getValue(*Args);
194 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(*Args);
199 Opts.LLVMArgs = Args->getAllArgValues(OPT_mllvm);
200 if (Args->hasArg(OPT_fatal_warnings))
202 Opts.OutputPath = Args->getLastArgValue(OPT_o);
203 if (Arg *A = Args->getLastArg(OPT_filetype)) {
204 StringRef Name = A->getValue(*Args);
212 << A->getAsString(*Args) << Name;
217 Opts.ShowHelp = Args->hasArg(OPT_help);
218 Opts.ShowVersion = Args->hasArg(OPT_version);
221 Opts.OutputAsmVariant = Args->getLastArgIntValue(OPT_output_asm_variant,
223 Opts.ShowEncoding = Args->hasArg(OPT_show_encoding);
224 Opts.ShowInst = Args->hasArg(OPT_show_inst);
227 Opts.RelaxAll = Args->hasArg(OPT_relax_all);
228 Opts.NoExecStack = Args->hasArg(OPT_no_exec_stack);
433 const char **Args = new const char*[NumArgs + 2];
434 Args[0] = "clang (LLVM option parsing)";
436 Args[i + 1] = Asm.LLVMArgs[i].c_str();
437 Args[NumArgs + 1] = 0;
438 llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args);