reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lld/ELF/Driver.cpp
  817   errorHandler().verbose = args.hasArg(OPT_verbose);
  819       args.hasFlag(OPT_fatal_warnings, OPT_no_fatal_warnings, false);
  821       args.hasArg(OPT_visual_studio_diagnostics_format, false);
  822   threadsEnabled = args.hasFlag(OPT_threads, OPT_no_threads, true);
  825       args.hasFlag(OPT_allow_multiple_definition,
  827       hasZOption(args, "muldefs");
  829       args.hasFlag(OPT_allow_shlib_undefined, OPT_no_allow_shlib_undefined,
  830                    args.hasArg(OPT_shared));
  831   config->auxiliaryList = args::getStrings(args, OPT_auxiliary);
  832   config->bsymbolic = args.hasArg(OPT_Bsymbolic);
  833   config->bsymbolicFunctions = args.hasArg(OPT_Bsymbolic_functions);
  835       args.hasFlag(OPT_check_sections, OPT_no_check_sections, true);
  836   config->chroot = args.getLastArgValue(OPT_chroot);
  837   config->compressDebugSections = getCompressDebugSections(args);
  838   config->cref = args.hasFlag(OPT_cref, OPT_no_cref, false);
  839   config->defineCommon = args.hasFlag(OPT_define_common, OPT_no_define_common,
  840                                       !args.hasArg(OPT_relocatable));
  841   config->demangle = args.hasFlag(OPT_demangle, OPT_no_demangle, true);
  842   config->dependentLibraries = args.hasFlag(OPT_dependent_libraries, OPT_no_dependent_libraries, true);
  843   config->disableVerify = args.hasArg(OPT_disable_verify);
  844   config->discard = getDiscard(args);
  845   config->dwoDir = args.getLastArgValue(OPT_plugin_opt_dwo_dir_eq);
  846   config->dynamicLinker = getDynamicLinker(args);
  848       args.hasFlag(OPT_eh_frame_hdr, OPT_no_eh_frame_hdr, false);
  849   config->emitLLVM = args.hasArg(OPT_plugin_opt_emit_llvm, false);
  850   config->emitRelocs = args.hasArg(OPT_emit_relocs);
  851   config->callGraphProfileSort = args.hasFlag(
  854       args.hasFlag(OPT_enable_new_dtags, OPT_disable_new_dtags, true);
  855   config->entry = args.getLastArgValue(OPT_entry);
  857       args.hasFlag(OPT_execute_only, OPT_no_execute_only, false);
  859       args.hasFlag(OPT_export_dynamic, OPT_no_export_dynamic, false);
  860   config->filterList = args::getStrings(args, OPT_filter);
  861   config->fini = args.getLastArgValue(OPT_fini, "_fini");
  862   config->fixCortexA53Errata843419 = args.hasArg(OPT_fix_cortex_a53_843419);
  863   config->fixCortexA8 = args.hasArg(OPT_fix_cortex_a8);
  864   config->forceBTI = args.hasArg(OPT_force_bti);
  865   config->requireCET = args.hasArg(OPT_require_cet);
  866   config->gcSections = args.hasFlag(OPT_gc_sections, OPT_no_gc_sections, false);
  867   config->gnuUnique = args.hasFlag(OPT_gnu_unique, OPT_no_gnu_unique, true);
  868   config->gdbIndex = args.hasFlag(OPT_gdb_index, OPT_no_gdb_index, false);
  869   config->icf = getICF(args);
  871       args.hasArg(OPT_ignore_data_address_equality);
  873       args.hasArg(OPT_ignore_function_address_equality);
  874   config->init = args.getLastArgValue(OPT_init, "_init");
  875   config->ltoAAPipeline = args.getLastArgValue(OPT_lto_aa_pipeline);
  876   config->ltoCSProfileGenerate = args.hasArg(OPT_lto_cs_profile_generate);
  877   config->ltoCSProfileFile = args.getLastArgValue(OPT_lto_cs_profile_file);
  878   config->ltoDebugPassManager = args.hasArg(OPT_lto_debug_pass_manager);
  879   config->ltoNewPassManager = args.hasArg(OPT_lto_new_pass_manager);
  880   config->ltoNewPmPasses = args.getLastArgValue(OPT_lto_newpm_passes);
  881   config->ltoo = args::getInteger(args, OPT_lto_O, 2);
  882   config->ltoObjPath = args.getLastArgValue(OPT_lto_obj_path_eq);
  883   config->ltoPartitions = args::getInteger(args, OPT_lto_partitions, 1);
  884   config->ltoSampleProfile = args.getLastArgValue(OPT_lto_sample_profile);
  885   config->mapFile = args.getLastArgValue(OPT_Map);
  886   config->mipsGotSize = args::getInteger(args, OPT_mips_got_size, 0xfff0);
  888       args.hasFlag(OPT_merge_exidx_entries, OPT_no_merge_exidx_entries, true);
  889   config->nmagic = args.hasFlag(OPT_nmagic, OPT_no_nmagic, false);
  890   config->noinhibitExec = args.hasArg(OPT_noinhibit_exec);
  891   config->nostdlib = args.hasArg(OPT_nostdlib);
  892   config->oFormatBinary = isOutputFormatBinary(args);
  893   config->omagic = args.hasFlag(OPT_omagic, OPT_no_omagic, false);
  894   config->optRemarksFilename = args.getLastArgValue(OPT_opt_remarks_filename);
  895   config->optRemarksPasses = args.getLastArgValue(OPT_opt_remarks_passes);
  896   config->optRemarksWithHotness = args.hasArg(OPT_opt_remarks_with_hotness);
  897   config->optRemarksFormat = args.getLastArgValue(OPT_opt_remarks_format);
  898   config->optimize = args::getInteger(args, OPT_O, 1);
  899   config->orphanHandling = getOrphanHandling(args);
  900   config->outputFile = args.getLastArgValue(OPT_o);
  901   config->pacPlt = args.hasArg(OPT_pac_plt);
  902   config->pie = args.hasFlag(OPT_pie, OPT_no_pie, false);
  904       args.hasFlag(OPT_print_icf_sections, OPT_no_print_icf_sections, false);
  906       args.hasFlag(OPT_print_gc_sections, OPT_no_print_gc_sections, false);
  908       args.getLastArgValue(OPT_print_symbol_order);
  909   config->rpath = getRpath(args);
  910   config->relocatable = args.hasArg(OPT_relocatable);
  911   config->saveTemps = args.hasArg(OPT_save_temps);
  912   config->searchPaths = args::getStrings(args, OPT_library_path);
  913   config->sectionStartMap = getSectionStartMap(args);
  914   config->shared = args.hasArg(OPT_shared);
  915   config->singleRoRx = args.hasArg(OPT_no_rosegment);
  916   config->soName = args.getLastArgValue(OPT_soname);
  917   config->sortSection = getSortSection(args);
  918   config->splitStackAdjustSize = args::getInteger(args, OPT_split_stack_adjust_size, 16384);
  919   config->strip = getStrip(args);
  920   config->sysroot = args.getLastArgValue(OPT_sysroot);
  921   config->target1Rel = args.hasFlag(OPT_target1_rel, OPT_target1_abs, false);
  922   config->target2 = getTarget2(args);
  923   config->thinLTOCacheDir = args.getLastArgValue(OPT_thinlto_cache_dir);
  925       parseCachePruningPolicy(args.getLastArgValue(OPT_thinlto_cache_policy)),
  927   config->thinLTOEmitImportsFiles = args.hasArg(OPT_thinlto_emit_imports_files);
  928   config->thinLTOIndexOnly = args.hasArg(OPT_thinlto_index_only) ||
  929                              args.hasArg(OPT_thinlto_index_only_eq);
  930   config->thinLTOIndexOnlyArg = args.getLastArgValue(OPT_thinlto_index_only_eq);
  931   config->thinLTOJobs = args::getInteger(args, OPT_thinlto_jobs, -1u);
  933       getOldNewOptions(args, OPT_thinlto_object_suffix_replace_eq);
  935       getOldNewOptions(args, OPT_thinlto_prefix_replace_eq);
  936   config->trace = args.hasArg(OPT_trace);
  937   config->undefined = args::getStrings(args, OPT_undefined);
  939       args.hasFlag(OPT_undefined_version, OPT_no_undefined_version, true);
  940   config->useAndroidRelrTags = args.hasFlag(
  942   config->unresolvedSymbols = getUnresolvedSymbolPolicy(args);
  944       args.hasFlag(OPT_warn_backrefs, OPT_no_warn_backrefs, false);
  945   config->warnCommon = args.hasFlag(OPT_warn_common, OPT_no_warn_common, false);
  947       args.hasFlag(OPT_warn_ifunc_textrel, OPT_no_warn_ifunc_textrel, false);
  949       args.hasFlag(OPT_warn_symbol_ordering, OPT_no_warn_symbol_ordering, true);
  950   config->zCombreloc = getZFlag(args, "combreloc", "nocombreloc", true);
  951   config->zCopyreloc = getZFlag(args, "copyreloc", "nocopyreloc", true);
  952   config->zExecstack = getZFlag(args, "execstack", "noexecstack", false);
  953   config->zGlobal = hasZOption(args, "global");
  954   config->zHazardplt = hasZOption(args, "hazardplt");
  955   config->zIfuncNoplt = hasZOption(args, "ifunc-noplt");
  956   config->zInitfirst = hasZOption(args, "initfirst");
  957   config->zInterpose = hasZOption(args, "interpose");
  959       args, "keep-text-section-prefix", "nokeep-text-section-prefix", false);
  960   config->zNodefaultlib = hasZOption(args, "nodefaultlib");
  961   config->zNodelete = hasZOption(args, "nodelete");
  962   config->zNodlopen = hasZOption(args, "nodlopen");
  963   config->zNow = getZFlag(args, "now", "lazy", false);
  964   config->zOrigin = hasZOption(args, "origin");
  965   config->zRelro = getZFlag(args, "relro", "norelro", true);
  966   config->zRetpolineplt = hasZOption(args, "retpolineplt");
  967   config->zRodynamic = hasZOption(args, "rodynamic");
  968   config->zSeparate = getZSeparate(args);
  969   config->zStackSize = args::getZOptionValue(args, OPT_z, "stack-size", 0);
  970   config->zText = getZFlag(args, "text", "notext", true);
  971   config->zWxneeded = hasZOption(args, "wxneeded");
  974   if (auto *arg = args.getLastArg(OPT_plugin_opt_mcpu_eq))
  978   for (auto *arg : args.filtered(OPT_plugin_opt))
  982   for (auto *arg : args.filtered(OPT_mllvm))
  996   if (auto *arg = args.getLastArg(OPT_m)) {
 1006   if (auto *arg = args.getLastArg(OPT_hash_style)) {
 1018   if (args.hasArg(OPT_print_map))
 1027   std::tie(config->buildId, config->buildIdVector) = getBuildId(args);
 1030       getPackDynRelocs(args);
 1032   if (auto *arg = args.getLastArg(OPT_symbol_ordering_file)){
 1033     if (args.hasArg(OPT_call_graph_ordering_file))
 1051   if (auto *arg = args.getLastArg(OPT_retain_symbols_file)) {
 1064     for (auto *arg : args.filtered(OPT_dynamic_list))
 1068     for (auto *arg : args.filtered(OPT_export_dynamic_symbol))
 1077   for (auto *arg : args.filtered(OPT_export_dynamic_symbol))
 1080   for (auto *arg : args.filtered(OPT_version_script))