Lines Matching refs:arg

264   if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Color)) {  in TranslateArguments()  local
265 bool res = llvm::StringSwitch<bool>(arg->getValue()) in TranslateArguments()
281 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Verbose)) { in TranslateArguments() local
282 llvm::StringRef value = arg->getValue(); in TranslateArguments()
285 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
286 << ": " << arg->getValue(); in TranslateArguments()
293 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_ErrorLimit)) { in TranslateArguments() local
294 llvm::StringRef value = arg->getValue(); in TranslateArguments()
297 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
298 << ": " << arg->getValue(); in TranslateArguments()
305 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_WarningLimit)) { in TranslateArguments() local
306 llvm::StringRef value = arg->getValue(); in TranslateArguments()
309 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
310 << ": " << arg->getValue(); in TranslateArguments()
323 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Triple)) { in TranslateArguments() local
326 triple.setTriple(arg->getValue()); in TranslateArguments()
339 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Emulation)) { in TranslateArguments() local
341 ParseEmulation(triple, arg->getValue()); in TranslateArguments()
342 } else if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Arch)) { in TranslateArguments() local
344 config_.targets().setArch(arg->getValue()); in TranslateArguments()
347 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_CPU)) { in TranslateArguments() local
348 config_.targets().setTargetCPU(arg->getValue()); in TranslateArguments()
354 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_GPSize)) { in TranslateArguments() local
355 llvm::StringRef value = arg->getValue(); in TranslateArguments()
358 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
359 << ": " << arg->getValue() << "\n"; in TranslateArguments()
366 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_StubGroupSize)) { in TranslateArguments() local
367 llvm::StringRef value = arg->getValue(); in TranslateArguments()
370 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
371 << ": " << arg->getValue() << "\n"; in TranslateArguments()
390 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Entry)) { in TranslateArguments() local
391 script_.setEntry(arg->getValue()); in TranslateArguments()
401 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_SOName)) { in TranslateArguments() local
402 config_.options().setSOName(arg->getValue()); in TranslateArguments()
416 for (llvm::opt::Arg* arg : args.filtered(kOpt_Z)) { in TranslateArguments()
417 llvm::StringRef value = arg->getValue(); in TranslateArguments()
460 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Dyld)) { in TranslateArguments() local
461 config_.options().setDyld(arg->getValue()); in TranslateArguments()
468 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_SpareDTags)) { in TranslateArguments() local
469 llvm::StringRef value = arg->getValue(); in TranslateArguments()
472 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
473 << ": " << arg->getValue() << "\n"; in TranslateArguments()
490 } else if (llvm::opt::Arg* arg = args.getLastArg(kOpt_OutputFormat)) { in TranslateArguments() local
492 llvm::StringRef value = arg->getValue(); in TranslateArguments()
502 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Output)) { in TranslateArguments() local
503 output_name = arg->getValue(); in TranslateArguments()
515 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_InputFormat)) { in TranslateArguments() local
516 llvm::StringRef value = arg->getValue(); in TranslateArguments()
554 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_HashStyle)) { in TranslateArguments() local
556 llvm::StringSwitch<mcld::GeneralOptions::HashStyle>(arg->getValue()) in TranslateArguments()
567 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_ExportDynamic, in TranslateArguments() local
569 if (arg->getOption().matches(kOpt_ExportDynamic)) { in TranslateArguments()
580 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_ExcludeLibs)) { in TranslateArguments() local
581 llvm::StringRef value = arg->getValue(); in TranslateArguments()
594 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Sysroot)) { in TranslateArguments() local
595 mcld::sys::fs::Path path(arg->getValue()); in TranslateArguments()
602 for (llvm::opt::Arg* arg : args.filtered(kOpt_LibraryPath)) { in TranslateArguments()
603 if (!script_.directories().insert(arg->getValue())) in TranslateArguments()
604 mcld::warning(mcld::diag::warn_cannot_open_search_dir) << arg->getValue(); in TranslateArguments()
611 for (llvm::opt::Arg* arg : args.filtered(kOpt_RPath)) { in TranslateArguments()
612 config_.options().getRpathList().push_back(arg->getValue()); in TranslateArguments()
623 for (llvm::opt::Arg* arg : args.filtered(kOpt_Undefined)) { in TranslateArguments()
624 config_.options().getUndefSymList().push_back(arg->getValue()); in TranslateArguments()
632 for (llvm::opt::Arg* arg : args.filtered(kOpt_Wrap)) { in TranslateArguments()
634 const char* symbol = arg->getValue(); in TranslateArguments()
660 for (llvm::opt::Arg* arg : args.filtered(kOpt_Portable)) { in TranslateArguments()
662 const char* symbol = arg->getValue(); in TranslateArguments()
688 for (llvm::opt::Arg* arg : args.filtered(kOpt_SectionStart)) { in TranslateArguments()
689 llvm::StringRef value = arg->getValue(); in TranslateArguments()
700 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Tbss)) { in TranslateArguments() local
701 llvm::StringRef value = arg->getValue(); in TranslateArguments()
704 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
705 << ": " << arg->getValue() << "\n"; in TranslateArguments()
715 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Tdata)) { in TranslateArguments() local
716 llvm::StringRef value = arg->getValue(); in TranslateArguments()
719 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
720 << ": " << arg->getValue() << "\n"; in TranslateArguments()
730 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Ttext)) { in TranslateArguments() local
731 llvm::StringRef value = arg->getValue(); in TranslateArguments()
734 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
735 << ": " << arg->getValue() << "\n"; in TranslateArguments()
749 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_GCSections, in TranslateArguments() local
751 if (arg->getOption().matches(kOpt_GCSections)) { in TranslateArguments()
759 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_PrintGCSections, in TranslateArguments() local
761 if (arg->getOption().matches(kOpt_PrintGCSections)) { in TranslateArguments()
769 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_LDGeneratedUnwindInfo, in TranslateArguments() local
771 if (arg->getOption().matches(kOpt_LDGeneratedUnwindInfo)) { in TranslateArguments()
779 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_ICF)) { in TranslateArguments() local
781 llvm::StringSwitch<mcld::GeneralOptions::ICF>(arg->getValue()) in TranslateArguments()
787 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
788 << ": " << arg->getValue() << "\n"; in TranslateArguments()
795 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_ICFIters)) { in TranslateArguments() local
796 llvm::StringRef value = arg->getValue(); in TranslateArguments()
799 mcld::errs() << "Invalid value for" << arg->getOption().getPrefixedName() in TranslateArguments()
800 << ": " << arg->getValue() << "\n"; in TranslateArguments()
807 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_PrintICFSections, in TranslateArguments() local
809 if (arg->getOption().matches(kOpt_PrintICFSections)) { in TranslateArguments()
828 for (llvm::opt::Arg* arg : args) { in TranslateArguments()
829 const unsigned index = arg->getIndex(); in TranslateArguments()
831 switch (arg->getOption().getID()) { in TranslateArguments()
834 const char* value = arg->getValue(); in TranslateArguments()
856 expr.append(arg->getValue()) in TranslateArguments()
867 index, arg->getValue(), script_.directories())); in TranslateArguments()
956 action.reset(new mcld::InputFileAction(index, arg->getValue())); in TranslateArguments()
997 for (std::string arg : unknown_args) in TranslateArguments() local
998 mcld::warning(mcld::diag::warn_unsupported_option) << arg; in TranslateArguments()