Lines Matching defs:Arg

19 #include "llvm/Option/Arg.h"
630 for (auto *Arg : InputArgs.filtered(OBJCOPY_UNKNOWN))
632 Arg->getAsString(InputArgs).c_str());
634 for (auto *Arg : InputArgs.filtered(OBJCOPY_INPUT))
635 Positional.push_back(Arg->getValue());
705 for (const auto *Arg : InputArgs.filtered(OBJCOPY_subsystem)) {
707 std::tie(Subsystem, Version) = StringRef(Arg->getValue()).split(':');
837 if (auto Arg = InputArgs.getLastArg(OBJCOPY_extract_partition))
838 Config.ExtractPartition = Arg->getValue();
869 if (const auto *Arg = InputArgs.getLastArg(OBJCOPY_change_section_lma)) {
871 parseChangeSectionLMA(Arg->getValue(), Arg->getSpelling());
877 for (auto *Arg : InputArgs.filtered(OBJCOPY_redefine_symbol)) {
878 if (!StringRef(Arg->getValue()).contains('='))
881 auto Old2New = StringRef(Arg->getValue()).split('=');
888 for (auto *Arg : InputArgs.filtered(OBJCOPY_redefine_symbols))
890 Arg->getValue()))
893 for (auto *Arg : InputArgs.filtered(OBJCOPY_rename_section)) {
895 parseRenameSectionValue(StringRef(Arg->getValue()));
903 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_alignment)) {
905 parseSetSectionAttribute("--set-section-alignment", Arg->getValue());
910 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_flags)) {
912 parseSetSectionFlagValue(Arg->getValue());
921 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_type)) {
923 parseSetSectionAttribute("--set-section-type", Arg->getValue());
945 for (auto *Arg : InputArgs.filtered(OBJCOPY_remove_section))
947 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
949 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_section))
951 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
953 for (auto *Arg : InputArgs.filtered(OBJCOPY_only_section))
955 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
957 for (auto *Arg : InputArgs.filtered(OBJCOPY_add_section)) {
958 if (Error Err = loadNewSectionData(Arg->getValue(), "--add-section",
962 for (auto *Arg : InputArgs.filtered(OBJCOPY_update_section)) {
963 if (Error Err = loadNewSectionData(Arg->getValue(), "--update-section",
967 for (auto *Arg : InputArgs.filtered(OBJCOPY_dump_section)) {
968 StringRef Value(Arg->getValue());
987 if (auto *Arg =
989 Config.DiscardMode = Arg->getOption().matches(OBJCOPY_discard_all)
1006 for (auto *Arg : InputArgs.filtered(OBJCOPY_localize_symbol))
1008 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1010 for (auto *Arg : InputArgs.filtered(OBJCOPY_localize_symbols))
1012 Arg->getValue(), SymbolMatchStyle,
1015 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_global_symbol))
1017 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1019 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_global_symbols))
1021 Arg->getValue(), SymbolMatchStyle,
1024 for (auto *Arg : InputArgs.filtered(OBJCOPY_globalize_symbol))
1026 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1028 for (auto *Arg : InputArgs.filtered(OBJCOPY_globalize_symbols))
1030 Arg->getValue(), SymbolMatchStyle,
1033 for (auto *Arg : InputArgs.filtered(OBJCOPY_weaken_symbol))
1035 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1037 for (auto *Arg : InputArgs.filtered(OBJCOPY_weaken_symbols))
1039 Arg->getValue(), SymbolMatchStyle,
1042 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_symbol))
1044 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1046 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_symbols))
1048 Arg->getValue(), SymbolMatchStyle,
1051 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_unneeded_symbol))
1054 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1056 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_unneeded_symbols))
1058 Arg->getValue(), SymbolMatchStyle,
1061 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_symbol))
1063 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1065 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_symbols))
1067 addSymbolsFromFile(Config.SymbolsToKeep, DC.Alloc, Arg->getValue(),
1070 for (auto *Arg : InputArgs.filtered(OBJCOPY_skip_symbol))
1072 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1074 for (auto *Arg : InputArgs.filtered(OBJCOPY_skip_symbols))
1076 addSymbolsFromFile(Config.SymbolsToSkip, DC.Alloc, Arg->getValue(),
1079 for (auto *Arg : InputArgs.filtered(OBJCOPY_add_symbol)) {
1080 Expected<NewSymbolInfo> SymInfo = parseNewSymbolInfo(Arg->getValue());
1086 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_symbol_visibility)) {
1087 if (!StringRef(Arg->getValue()).contains('='))
1090 auto [Sym, Visibility] = StringRef(Arg->getValue()).split('=');
1099 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_symbols_visibility)) {
1100 if (!StringRef(Arg->getValue()).contains('='))
1103 auto [File, Visibility] = StringRef(Arg->getValue()).split('=');
1127 for (auto *Arg : InputArgs)
1128 if (Arg->getOption().matches(OBJCOPY_set_start)) {
1129 auto EAddr = getAsInteger<uint64_t>(Arg->getValue());
1132 EAddr.getError(), "bad entry point address: '%s'", Arg->getValue());
1135 } else if (Arg->getOption().matches(OBJCOPY_change_start)) {
1136 auto EIncr = getAsInteger<int64_t>(Arg->getValue());
1140 Arg->getValue());
1203 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_add_rpath))
1204 MachOConfig.RPathToAdd.push_back(Arg->getValue());
1206 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_prepend_rpath))
1207 MachOConfig.RPathToPrepend.push_back(Arg->getValue());
1209 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_delete_rpath)) {
1210 StringRef RPath = Arg->getValue();
1227 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_rpath)) {
1228 StringRef Old = Arg->getValue(0);
1229 StringRef New = Arg->getValue(1);
1269 if (auto *Arg = InputArgs.getLastArg(INSTALL_NAME_TOOL_id)) {
1270 MachOConfig.SharedLibId = Arg->getValue();
1276 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_change))
1278 {Arg->getValue(0), Arg->getValue(1)});
1284 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_UNKNOWN))
1286 Arg->getAsString(InputArgs).c_str());
1287 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_INPUT))
1288 Positional.push_back(Arg->getValue());
1341 for (auto *Arg : InputArgs.filtered(BITCODE_STRIP_UNKNOWN))
1343 Arg->getAsString(InputArgs).c_str());
1346 for (auto *Arg : InputArgs.filtered(BITCODE_STRIP_INPUT))
1347 Positional.push_back(Arg->getValue());
1415 for (auto *Arg : InputArgs.filtered(STRIP_UNKNOWN))
1417 Arg->getAsString(InputArgs).c_str());
1418 for (auto *Arg : InputArgs.filtered(STRIP_INPUT))
1419 Positional.push_back(Arg->getValue());
1447 if (auto *Arg = InputArgs.getLastArg(STRIP_discard_all, STRIP_discard_locals))
1448 Config.DiscardMode = Arg->getOption().matches(STRIP_discard_all)
1453 if (auto Arg = InputArgs.getLastArg(STRIP_strip_all, STRIP_no_strip_all))
1454 Config.StripAll = Arg->getOption().getID() == STRIP_strip_all;
1461 for (auto *Arg : InputArgs.filtered(STRIP_keep_section))
1463 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
1466 for (auto *Arg : InputArgs.filtered(STRIP_remove_section))
1468 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
1471 for (auto *Arg : InputArgs.filtered(STRIP_strip_symbol))
1473 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1476 for (auto *Arg : InputArgs.filtered(STRIP_keep_symbol))
1478 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))