Lines Matching refs:Arg
284 for (auto *Arg : Args) { in parseDirectives() local
285 switch (Arg->getOption().getUnaliasedOption().getID()) { in parseDirectives()
287 parseAligncomm(Arg->getValue()); in parseDirectives()
290 parseAlternateName(Arg->getValue()); in parseDirectives()
293 if (Optional<StringRef> Path = findLib(Arg->getValue())) in parseDirectives()
297 Config->Entry = addUndefined(mangle(Arg->getValue())); in parseDirectives()
300 checkFailIfMismatch(Arg->getValue()); in parseDirectives()
303 addUndefined(Arg->getValue()); in parseDirectives()
306 parseMerge(Arg->getValue()); in parseDirectives()
309 Config->NoDefaultLibs.insert(doFindLib(Arg->getValue())); in parseDirectives()
312 parseSection(Arg->getValue()); in parseDirectives()
315 parseSubsystem(Arg->getValue(), &Config->Subsystem, in parseDirectives()
325 error(Arg->getSpelling() + " is not allowed in .drectve"); in parseDirectives()
508 for (auto *Arg : Args) { in createResponseFile() local
509 switch (Arg->getOption().getID()) { in createResponseFile()
522 OS << toString(*Arg) << "\n"; in createResponseFile()
600 auto *Arg = Args.getLastArg(OPT_lldmap, OPT_lldmap_file); in getMapFile() local
601 if (!Arg) in getMapFile()
603 if (Arg->getOption().getID() == OPT_lldmap_file) in getMapFile()
604 return Arg->getValue(); in getMapFile()
606 assert(Arg->getOption().getID() == OPT_lldmap); in getMapFile()
773 static void parseOrderFile(StringRef Arg) { in parseOrderFile() argument
776 if (!Arg.startswith("@")) { in parseOrderFile()
789 StringRef Path = Arg.substr(1); in parseOrderFile()
803 warn("/order:" + Arg + ": missing symbol: " + S + " [LNK4037]"); in parseOrderFile()
924 for (auto *Arg : Args.filtered(OPT_mllvm)) in link() local
925 V.push_back(Arg->getValue()); in link()
929 if (auto *Arg = Args.getLastArg(OPT_errorlimit)) { in link() local
931 StringRef S = Arg->getValue(); in link()
933 error(Arg->getSpelling() + " number expected, but got " + S); in link()
959 if (auto *Arg = Args.getLastArg(OPT_linkrepro)) { in link() local
960 SmallString<64> Path = StringRef(Arg->getValue()); in link()
983 for (auto *Arg : Args.filtered(OPT_libpath)) in link() local
984 SearchPaths.push_back(Arg->getValue()); in link()
988 for (auto *Arg : Args.filtered(OPT_ignore)) { in link() local
990 StringRef(Arg->getValue()).split(Vec, ','); in link()
1003 if (auto *Arg = Args.getLastArg(OPT_out)) in link() local
1004 Config->OutputFile = Arg->getValue(); in link()
1034 if (auto *Arg = Args.getLastArg(OPT_pdb)) in link() local
1035 Config->PDBPath = Arg->getValue(); in link()
1036 if (auto *Arg = Args.getLastArg(OPT_pdbaltpath)) in link() local
1037 Config->PDBAltPath = Arg->getValue(); in link()
1041 if (auto *Arg = Args.getLastArg(OPT_pdb_source_path)) in link() local
1042 Config->PDBSourcePath = Arg->getValue(); in link()
1086 if (auto *Arg = Args.getLastArg(OPT_machine)) in link() local
1087 Config->Machine = getMachineType(Arg->getValue()); in link()
1090 for (auto *Arg : Args.filtered(OPT_nodefaultlib)) in link() local
1091 Config->NoDefaultLibs.insert(doFindLib(Arg->getValue())); in link()
1098 if (auto *Arg = Args.getLastArg(OPT_base)) in link() local
1099 parseNumbers(Arg->getValue(), &Config->ImageBase); in link()
1102 if (auto *Arg = Args.getLastArg(OPT_stack)) in link() local
1103 parseNumbers(Arg->getValue(), &Config->StackReserve, &Config->StackCommit); in link()
1106 if (auto *Arg = Args.getLastArg(OPT_guard)) in link() local
1107 parseGuard(Arg->getValue()); in link()
1110 if (auto *Arg = Args.getLastArg(OPT_heap)) in link() local
1111 parseNumbers(Arg->getValue(), &Config->HeapReserve, &Config->HeapCommit); in link()
1114 if (auto *Arg = Args.getLastArg(OPT_version)) in link() local
1115 parseVersion(Arg->getValue(), &Config->MajorImageVersion, in link()
1119 if (auto *Arg = Args.getLastArg(OPT_subsystem)) in link() local
1120 parseSubsystem(Arg->getValue(), &Config->Subsystem, &Config->MajorOSVersion, in link()
1124 if (llvm::opt::Arg *Arg = Args.getLastArg(OPT_timestamp, OPT_repro)) { in link() local
1125 if (Arg->getOption().getID() == OPT_repro) { in link()
1130 StringRef Value(Arg->getValue()); in link()
1141 for (auto *Arg : Args.filtered(OPT_alternatename)) in link() local
1142 parseAlternateName(Arg->getValue()); in link()
1145 for (auto *Arg : Args.filtered(OPT_incl)) in link() local
1146 addUndefined(Arg->getValue()); in link()
1149 if (auto *Arg = Args.getLastArg(OPT_implib)) in link() local
1150 Config->Implib = Arg->getValue(); in link()
1157 for (auto *Arg : Args.filtered(OPT_opt)) { in link() local
1158 std::string Str = StringRef(Arg->getValue()).lower(); in link()
1213 if (auto *Arg = Args.getLastArg(OPT_lldltocache)) in link() local
1214 Config->LTOCache = Arg->getValue(); in link()
1217 if (auto *Arg = Args.getLastArg(OPT_lldltocachepolicy)) in link() local
1219 parseCachePruningPolicy(Arg->getValue()), in link()
1220 Twine("/lldltocachepolicy: invalid cache policy: ") + Arg->getValue()); in link()
1223 for (auto *Arg : Args.filtered(OPT_failifmismatch)) in link() local
1224 checkFailIfMismatch(Arg->getValue()); in link()
1227 for (auto *Arg : Args.filtered(OPT_merge)) in link() local
1228 parseMerge(Arg->getValue()); in link()
1245 for (auto *Arg : Args.filtered(OPT_section)) in link() local
1246 parseSection(Arg->getValue()); in link()
1249 for (auto *Arg : Args.filtered(OPT_aligncomm)) in link() local
1250 parseAligncomm(Arg->getValue()); in link()
1254 if (auto *Arg = Args.getLastArg(OPT_manifestdependency)) { in link() local
1255 Config->ManifestDependency = Arg->getValue(); in link()
1260 if (auto *Arg = Args.getLastArg(OPT_manifest, OPT_manifest_colon)) { in link() local
1261 if (Arg->getOption().getID() == OPT_manifest) in link()
1264 parseManifest(Arg->getValue()); in link()
1268 if (auto *Arg = Args.getLastArg(OPT_manifestuac)) in link() local
1269 parseManifestUAC(Arg->getValue()); in link()
1272 if (auto *Arg = Args.getLastArg(OPT_manifestfile)) in link() local
1273 Config->ManifestFile = Arg->getValue(); in link()
1276 for (auto *Arg : Args.filtered(OPT_manifestinput)) in link() local
1277 Config->ManifestInput.push_back(Arg->getValue()); in link()
1330 for (auto *Arg : Args.filtered(OPT_wholearchive_file)) { in link() local
1331 if (Optional<StringRef> Path = doFindFile(Arg->getValue())) { in link()
1352 for (auto *Arg : Args.filtered(OPT_INPUT, OPT_wholearchive_file)) in link() local
1353 if (Optional<StringRef> Path = findFile(Arg->getValue())) in link()
1356 for (auto *Arg : Args.filtered(OPT_defaultlib)) in link() local
1357 if (Optional<StringRef> Path = findLib(Arg->getValue())) in link()
1404 for (auto *Arg : Args.filtered(OPT_export)) { in link() local
1405 Export E = parseExport(Arg->getValue()); in link()
1416 if (auto *Arg = Args.getLastArg(OPT_deffile)) { in link() local
1418 parseModuleDefs(Arg->getValue()); in link()
1438 if (auto *Arg = Args.getLastArg(OPT_entry)) { in link() local
1439 Config->Entry = addUndefined(mangle(Arg->getValue())); in link()
1457 for (auto *Arg : Args.filtered(OPT_delayload)) { in link() local
1458 Config->DelayLoads.insert(StringRef(Arg->getValue()).lower()); in link()
1627 if (auto *Arg = Args.getLastArg(OPT_output_def)) in link() local
1628 writeDefFile(Arg->getValue()); in link()
1658 if (auto *Arg = Args.getLastArg(OPT_order)) in link() local
1659 parseOrderFile(Arg->getValue()); in link()