Lines Matching defs:Arg

19 #include "llvm/Option/Arg.h"
730 for (auto *Arg : InputArgs.filtered(OBJCOPY_UNKNOWN))
732 Arg->getAsString(InputArgs).c_str());
734 for (auto *Arg : InputArgs.filtered(OBJCOPY_INPUT))
735 Positional.push_back(Arg->getValue());
804 for (const auto *Arg : InputArgs.filtered(OBJCOPY_subsystem)) {
806 std::tie(Subsystem, Version) = StringRef(Arg->getValue()).split(':');
936 if (auto Arg = InputArgs.getLastArg(OBJCOPY_extract_partition))
937 Config.ExtractPartition = Arg->getValue();
968 if (const auto *Arg = InputArgs.getLastArg(OBJCOPY_change_section_lma)) {
970 parseChangeSectionLMA(Arg->getValue(), Arg->getSpelling());
976 for (auto *Arg : InputArgs.filtered(OBJCOPY_change_section_address)) {
978 parseChangeSectionAddr(Arg->getValue(), Arg->getSpelling(),
985 for (auto *Arg : InputArgs.filtered(OBJCOPY_redefine_symbol)) {
986 if (!StringRef(Arg->getValue()).contains('='))
989 auto Old2New = StringRef(Arg->getValue()).split('=');
996 for (auto *Arg : InputArgs.filtered(OBJCOPY_redefine_symbols))
998 Arg->getValue()))
1001 for (auto *Arg : InputArgs.filtered(OBJCOPY_rename_section)) {
1003 parseRenameSectionValue(StringRef(Arg->getValue()));
1011 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_alignment)) {
1013 parseSetSectionAttribute("--set-section-alignment", Arg->getValue());
1018 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_flags)) {
1020 parseSetSectionFlagValue(Arg->getValue());
1029 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_type)) {
1031 parseSetSectionAttribute("--set-section-type", Arg->getValue());
1053 for (auto *Arg : InputArgs.filtered(OBJCOPY_remove_section))
1055 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
1057 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_section))
1059 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
1061 for (auto *Arg : InputArgs.filtered(OBJCOPY_only_section))
1063 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
1065 for (auto *Arg : InputArgs.filtered(OBJCOPY_add_section)) {
1066 if (Error Err = loadNewSectionData(Arg->getValue(), "--add-section",
1070 for (auto *Arg : InputArgs.filtered(OBJCOPY_update_section)) {
1071 if (Error Err = loadNewSectionData(Arg->getValue(), "--update-section",
1075 for (auto *Arg : InputArgs.filtered(OBJCOPY_dump_section)) {
1076 StringRef Value(Arg->getValue());
1095 if (auto *Arg =
1097 Config.DiscardMode = Arg->getOption().matches(OBJCOPY_discard_all)
1114 for (auto *Arg : InputArgs.filtered(OBJCOPY_localize_symbol))
1116 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1118 for (auto *Arg : InputArgs.filtered(OBJCOPY_localize_symbols))
1120 Arg->getValue(), SymbolMatchStyle,
1123 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_global_symbol))
1125 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1127 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_global_symbols))
1129 Arg->getValue(), SymbolMatchStyle,
1132 for (auto *Arg : InputArgs.filtered(OBJCOPY_globalize_symbol))
1134 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1136 for (auto *Arg : InputArgs.filtered(OBJCOPY_globalize_symbols))
1138 Arg->getValue(), SymbolMatchStyle,
1141 for (auto *Arg : InputArgs.filtered(OBJCOPY_weaken_symbol))
1143 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1145 for (auto *Arg : InputArgs.filtered(OBJCOPY_weaken_symbols))
1147 Arg->getValue(), SymbolMatchStyle,
1150 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_symbol))
1152 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1154 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_symbols))
1156 Arg->getValue(), SymbolMatchStyle,
1159 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_unneeded_symbol))
1162 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1164 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_unneeded_symbols))
1166 Arg->getValue(), SymbolMatchStyle,
1169 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_symbol))
1171 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1173 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_symbols))
1175 addSymbolsFromFile(Config.SymbolsToKeep, DC.Alloc, Arg->getValue(),
1178 for (auto *Arg : InputArgs.filtered(OBJCOPY_skip_symbol))
1180 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1182 for (auto *Arg : InputArgs.filtered(OBJCOPY_skip_symbols))
1184 addSymbolsFromFile(Config.SymbolsToSkip, DC.Alloc, Arg->getValue(),
1187 for (auto *Arg : InputArgs.filtered(OBJCOPY_add_symbol)) {
1188 Expected<NewSymbolInfo> SymInfo = parseNewSymbolInfo(Arg->getValue());
1194 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_symbol_visibility)) {
1195 if (!StringRef(Arg->getValue()).contains('='))
1198 auto [Sym, Visibility] = StringRef(Arg->getValue()).split('=');
1207 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_symbols_visibility)) {
1208 if (!StringRef(Arg->getValue()).contains('='))
1211 auto [File, Visibility] = StringRef(Arg->getValue()).split('=');
1235 for (auto *Arg : InputArgs)
1236 if (Arg->getOption().matches(OBJCOPY_set_start)) {
1237 auto EAddr = getAsInteger<uint64_t>(Arg->getValue());
1240 EAddr.getError(), "bad entry point address: '%s'", Arg->getValue());
1243 } else if (Arg->getOption().matches(OBJCOPY_change_start)) {
1244 auto EIncr = getAsInteger<int64_t>(Arg->getValue());
1248 Arg->getValue());
1256 for (auto *Arg : InputArgs.filtered(OBJCOPY_remove_note)) {
1257 Expected<RemoveNoteInfo> NoteInfo = parseRemoveNoteInfo(Arg->getValue());
1334 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_add_rpath))
1335 MachOConfig.RPathToAdd.push_back(Arg->getValue());
1337 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_prepend_rpath))
1338 MachOConfig.RPathToPrepend.push_back(Arg->getValue());
1340 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_delete_rpath)) {
1341 StringRef RPath = Arg->getValue();
1358 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_rpath)) {
1359 StringRef Old = Arg->getValue(0);
1360 StringRef New = Arg->getValue(1);
1400 if (auto *Arg = InputArgs.getLastArg(INSTALL_NAME_TOOL_id)) {
1401 MachOConfig.SharedLibId = Arg->getValue();
1407 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_change))
1409 {Arg->getValue(0), Arg->getValue(1)});
1415 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_UNKNOWN))
1417 Arg->getAsString(InputArgs).c_str());
1418 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_INPUT))
1419 Positional.push_back(Arg->getValue());
1472 for (auto *Arg : InputArgs.filtered(BITCODE_STRIP_UNKNOWN))
1474 Arg->getAsString(InputArgs).c_str());
1477 for (auto *Arg : InputArgs.filtered(BITCODE_STRIP_INPUT))
1478 Positional.push_back(Arg->getValue());
1546 for (auto *Arg : InputArgs.filtered(STRIP_UNKNOWN))
1548 Arg->getAsString(InputArgs).c_str());
1549 for (auto *Arg : InputArgs.filtered(STRIP_INPUT))
1550 Positional.push_back(Arg->getValue());
1578 if (auto *Arg = InputArgs.getLastArg(STRIP_discard_all, STRIP_discard_locals))
1579 Config.DiscardMode = Arg->getOption().matches(STRIP_discard_all)
1584 if (auto Arg = InputArgs.getLastArg(STRIP_strip_all, STRIP_no_strip_all))
1585 Config.StripAll = Arg->getOption().getID() == STRIP_strip_all;
1592 for (auto *Arg : InputArgs.filtered(STRIP_keep_section))
1594 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
1597 for (auto *Arg : InputArgs.filtered(STRIP_remove_section))
1599 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
1602 for (auto *Arg : InputArgs.filtered(STRIP_strip_symbol))
1604 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
1607 for (auto *Arg : InputArgs.filtered(STRIP_keep_symbol))
1609 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))