|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
lib/Option/Arg.cpp 108 OS << getValue(i);
116 getIndex(), getSpelling(), getValue(0)));
lib/Option/ArgList.cpp 88 return A->getValue();
155 Arg->getValue(0)));
158 Output.push_back(Arg->getValue(0));
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp 113 openFile(Args.getLastArg(OPT_d)->getValue());
124 Machine = getEmulation(Arg->getValue());
142 Def->OutputFile = Arg->getValue();
lib/ToolDrivers/llvm-lib/LibDriver.cpp 65 return Arg->getValue();
79 Ret.push_back(Arg->getValue());
119 MemoryBuffer::getFile(Arg->getValue(), -1, false);
120 fatalOpenError(errorCodeToError(MaybeBuf.getError()), Arg->getValue());
309 LibMachine = getMachineType(Arg->getValue());
311 llvm::errs() << "unknown /machine: arg " << Arg->getValue() << '\n';
315 std::string(" (from '/machine:") + Arg->getValue() + "' flag)";
325 std::string Path = findInputFile(Arg->getValue(), SearchPaths);
327 llvm::errs() << Arg->getValue() << ": no such file or directory\n";
tools/clang/lib/Driver/Driver.cpp 358 (A->getValue(0) == StringRef("-MD") ||
359 A->getValue(0) == StringRef("-MMD"))) {
361 if (A->getValue(0) == StringRef("-MD"))
366 DAL->AddSeparateArg(A, Opts.getOption(options::OPT_MF), A->getValue(1));
372 StringRef Value = A->getValue();
427 TargetTriple = A->getValue();
448 StringRef ArchName = A->getValue();
524 StringRef ABIName = A->getValue();
558 LTOName = A->getValue();
568 << A->getValue();
578 RuntimeName = A->getValue();
589 << A->getOption().getName() << A->getValue();
1000 CLModePassThroughArgList.push_back(A->getValue());
1018 if (VFS->setCurrentWorkingDirectory(WD->getValue()))
1019 Diag(diag::err_drv_unable_to_set_working_directory) << WD->getValue();
1042 CCCGenericGCCName = A->getValue();
1058 TargetTriple = A->getValue();
1060 Dir = InstalledDir = A->getValue();
1063 PrefixDirs.push_back(A->getValue(0));
1066 SysRoot = A->getValue();
1068 DyldPrefix = A->getValue();
1071 ResourceDir = A->getValue();
1074 SaveTemps = llvm::StringSwitch<SaveTempsMode>(A->getValue())
1084 StringRef Name = A->getValue();
1287 } else if (!strcmp(it->second->getValue(), "-")) {
1314 StringRef ArchName = A->getValue();
1428 Diag(clang::diag::note_drv_command_failed_diag_msg) << A->getValue();
1545 if (TC.isThreadModelSupported(A->getValue()))
1546 OS << "Thread model: " << A->getValue();
1738 llvm::outs() << GetFilePath(A->getValue(), TC) << "\n";
1743 StringRef ProgName = A->getValue();
1754 StringRef PassedFlags = A->getValue();
1832 os << "\"" << IA->getInputArg().getValue() << "\"";
1939 tools::darwin::getArchTypeForMachOArchName(A->getValue());
1946 if (ArchNames.insert(A->getValue()).second)
1947 Archs.push_back(A->getValue());
2098 const char *Value = A->getValue();
2184 StringRef Value = A->getValue();
2187 Arg *InputArg = MakeInputArg(Args, Opts, A->getValue());
2192 StringRef Value = A->getValue();
2195 Arg *InputArg = MakeInputArg(Args, Opts, A->getValue());
2206 InputType = types::lookupTypeForTypeSpecifier(A->getValue());
2213 Diag(clang::diag::err_drv_unknown_language) << A->getValue();
2218 StringRef Val = A->getValue(0);
2521 const StringRef ArchStr = A->getValue();
3223 if (YcArg && YuArg && strcmp(YcArg->getValue(), YuArg->getValue()) != 0) {
3223 if (YcArg && YuArg && strcmp(YcArg->getValue(), YuArg->getValue()) != 0) {
3349 StringRef V = A->getValue();
3361 StringRef V = A->getValue();
3373 if (A->getValue()[0] == '\0') {
3561 ModName = A->getValue();
3642 ArchNames.insert(A->getValue());
3656 LinkingOutput = FinalOutput->getValue();
4122 const char *Name = Input.getValue();
4278 BaseInput = FinalOutput->getValue();
4369 return C.addResultFile(FinalOutput->getValue(), &JA);
4378 NameArg = A->getValue();
4410 SmallString<128> CrashDirectory(A->getValue());
4445 ->getValue();
4455 ->getValue();
4513 SmallString<128> TempPath(FinalOutput->getValue());
4681 Output = FpArg->getValue();
4689 Output = YcArg->getValue();
tools/clang/lib/Driver/SanitizerArgs.cpp 565 std::string BLPath = Arg->getValue();
599 StringRef S = A->getValue();
669 !StringRef(Arg->getValue(0))
748 StringRef S = A->getValue();
818 HwasanAbi = HwasanAbiArg->getValue();
1074 const char *Value = A->getValue(i);
1097 const char *Value = A->getValue(i);
1150 parseSanitizerValue(A->getValue(i), /*AllowGroups=*/true)) &
1154 Sanitizers += A->getValue(i);
tools/clang/lib/Driver/ToolChain.cpp 513 StringRef UseLinker = A ? A->getValue() : CLANG_DEFAULT_LINKER;
606 StringRef MArch = A->getValue();
644 MCPU = A->getValue();
646 MArch = A->getValue();
739 StringRef LibName = A ? A->getValue() : CLANG_DEFAULT_RTLIB;
758 StringRef LibName = A ? A->getValue() : CLANG_DEFAULT_UNWINDLIB;
784 StringRef LibName = A ? A->getValue() : CLANG_DEFAULT_CXX_STDLIB;
987 if (MSVT.tryParse(MSCompatibilityVersion->getValue())) {
991 << MSCompatibilityVersion->getValue();
999 if (StringRef(MSCVersion->getValue()).getAsInteger(10, Version)) {
1002 << MSCVersion->getAsString(Args) << MSCVersion->getValue();
1039 if (A->getValue(0) == getTripleString())
1040 Index = Args.getBaseArgs().MakeIndex(A->getValue(1));
1045 Index = Args.getBaseArgs().MakeIndex(A->getValue(0));
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp 36 StringRef Mcpu = A->getValue();
171 success = getAArch64ArchFeaturesFromMarch(D, A->getValue(), Args, Features);
173 success = getAArch64ArchFeaturesFromMcpu(D, A->getValue(), Args, Features);
180 getAArch64MicroArchFeaturesFromMtune(D, A->getValue(), Args, Features);
183 getAArch64MicroArchFeaturesFromMcpu(D, A->getValue(), Args, Features);
199 StringRef Mtp = A->getValue();
tools/clang/lib/Driver/ToolChains/Arch/ARM.cpp 39 CPU = A->getValue();
41 Arch = A->getValue();
47 StringRef Value = A->getValue();
143 llvm::StringSwitch<arm::ReadTPMode>(A->getValue())
149 if (StringRef(A->getValue()).empty())
173 ABI = llvm::StringSwitch<arm::FloatABI>(A->getValue())
178 if (ABI == FloatABI::Invalid && !StringRef(A->getValue()).empty()) {
325 StringRef Value = A->getValue();
351 CPUName = StringRef(WaCPU->getValue()).substr(6);
354 CPUName = CPUArg->getValue();
361 ArchName = StringRef(WaArch->getValue()).substr(7);
367 ArchName = ArchArg->getValue();
396 getARMFPUFeatures(D, WaFPU, Args, StringRef(WaFPU->getValue()).substr(6),
399 getARMFPUFeatures(D, FPUArg, Args, FPUArg->getValue(), Features);
420 StringRef(WaHDiv->getValue()).substr(8), Features);
422 getARMHWDivFeatures(D, HDivArg, Args, HDivArg->getValue(), Features);
tools/clang/lib/Driver/ToolChains/Arch/Mips.cpp 61 CPUName = A->getValue();
64 ABIName = A->getValue();
163 ABI = llvm::StringSwitch<mips::FloatABI>(A->getValue())
167 if (ABI == mips::FloatABI::Invalid && !StringRef(A->getValue()).empty()) {
292 StringRef Val = StringRef(A->getValue());
313 StringRef Val = StringRef(A->getValue());
380 StringRef Val = StringRef(A->getValue());
436 return A && (A->getValue() == StringRef(Value));
446 return llvm::StringSwitch<bool>(NaNArg->getValue())
tools/clang/lib/Driver/ToolChains/Arch/PPC.cpp 26 StringRef CPUName = A->getValue();
136 ABI = llvm::StringSwitch<ppc::FloatABI>(A->getValue())
140 if (ABI == ppc::FloatABI::Invalid && !StringRef(A->getValue()).empty()) {
157 return A && (A->getValue() == StringRef(Value));
tools/clang/lib/Driver/ToolChains/Arch/RISCV.cpp 362 MArch = A->getValue();
459 return A->getValue();
tools/clang/lib/Driver/ToolChains/Arch/Sparc.cpp 85 ABI = llvm::StringSwitch<sparc::FloatABI>(A->getValue())
90 !StringRef(A->getValue()).empty()) {
tools/clang/lib/Driver/ToolChains/Arch/SystemZ.cpp 20 return A->getValue();
tools/clang/lib/Driver/ToolChains/Arch/X86.cpp 26 if (StringRef(A->getValue()) != "native")
27 return A->getValue();
41 StringRef Arch = A->getValue();
114 if (StringRef(A->getValue()) == "native") {
tools/clang/lib/Driver/ToolChains/Clang.cpp 205 StringRef Val = A->getValue(0);
231 StringRef Val = A->getValue(i);
292 StringRef Value = A->getValue();
526 CmdArgs.push_back(A->getValue());
537 StringRef Map = A->getValue();
561 StringRef S(A->getValue());
692 ProfileGenerateArg->getValue()));
721 SmallString<128> Path(PGOGenArg->getValue());
731 Twine("-fprofile-instrument-use-path=") + ProfileUseArg->getValue()));
737 ProfileUseArg->getNumValues() == 0 ? "" : ProfileUseArg->getValue());
772 StringRef v = Arg->getValue();
784 StringRef v = Arg->getValue();
806 OutputFilename = FinalOutput->getValue();
819 CoverageFilename = FProfileDir->getValue();
939 StringRef Value = A->getValue();
1004 DepFile = MF->getValue();
1026 QuoteTarget(A->getValue(), Quoted);
1039 DepTarget = OutputOpt->getValue();
1113 StringRef ThroughHeader = YcArg ? YcArg->getValue() : YuArg->getValue();
1113 StringRef ThroughHeader = YcArg ? YcArg->getValue() : YuArg->getValue();
1140 SmallString<128> P(A->getValue());
1307 ABIName = A->getValue();
1446 StringRef Value = A->getValue();
1456 StringRef(A->getValue()).split(BranchProtection, '+');
1490 ABIName = A->getValue();
1549 Scope = A->getValue();
1610 StringRef v = A->getValue();
1691 StringRef Val = StringRef(A->getValue());
1724 HasQPX = A->getValue() == StringRef("a2q");
1743 StringRef V = A->getValue();
1752 ABIName = A->getValue();
1837 StringRef Value = A->getValue();
1882 StringRef CPUName = A->getValue();
1888 StringRef Value = A->getValue();
2031 StringRef Value = A->getValue();
2177 const char *S = A->getValue(1);
2238 CmdArgs.push_back(A->getValue());
2263 DenormalFPMath = A->getValue();
2268 StringRef Val = A->getValue();
2385 CmdArgs.push_back(A->getValue());
2451 CmdArgs.push_back(A->getValue());
2500 StringRef Str(A->getValue());
2525 StringRef Val = A->getValue();
2573 std::string CLStdStr = std::string("-cl-std=") + A->getValue();
2601 CmdArgs.push_back(A->getValue());
2620 CmdArgs.push_back(A->getValue());
2680 StringRef FuncName = Arg->getValue();
2750 Path = A->getValue();
2772 std::string("-fprebuilt-module-path=") + A->getValue()));
2838 if (llvm::sys::fs::status(A->getValue(), Status))
2839 D.Diag(diag::err_drv_no_such_file) << A->getValue();
3031 CmdArgs.push_back(A->getValue());
3041 std::string("-fdiagnostics-hotness-threshold=") + A->getValue();
3047 CmdArgs.push_back(A->getValue());
3074 StringRef Value(A->getValue());
3116 StringRef Value = Arg->getValue();
3123 << Arg->getOption().getName() << Arg->getValue();
3399 return ModuleNameArg ? ModuleNameArg->getValue() : "";
3454 DumpCompilationDatabase(C, MJ->getValue(), TripleStr, Output, Input, Args);
3458 DumpCompilationDatabaseFragmentToDir(GenCDBFragment->getValue(), C,
3811 if (StringRef(Arg->getValue()) == "-analyzer-config") {
3817 if (StringRef(Arg->getValue()) == "-analyzer-config") {
3866 CmdArgs.push_back(A->getValue());
3871 if (!TC.isThreadModelSupported(A->getValue()))
3873 << A->getValue() << A->getAsString(Args);
3874 CmdArgs.push_back(A->getValue());
3895 StringRef Map = A->getValue();
3900 CmdArgs.push_back(A->getValue());
3907 StringRef v = A->getValue();
3927 CmdArgs.push_back(A->getValue());
4100 CmdArgs.push_back(A->getValue());
4144 CmdArgs.push_back(A->getValue());
4379 CmdArgs.push_back(A->getValue());
4384 CmdArgs.push_back(A->getValue());
4389 CmdArgs.push_back(A->getValue());
4394 CmdArgs.push_back(A->getValue());
4405 CmdArgs.push_back(A->getValue());
4411 StringRef bytes = A->getValue();
4425 if (find(kCFABIs, StringRef(A->getValue())) == std::end(kCFABIs))
4426 D.Diag(diag::err_drv_invalid_cf_runtime_abi) << A->getValue();
4433 CmdArgs.push_back(A->getValue());
4438 CmdArgs.push_back(A->getValue());
4447 CmdArgs.push_back(A->getValue());
4453 CmdArgs.push_back(A->getValue());
4458 CmdArgs.push_back(A->getValue());
4463 CmdArgs.push_back(A->getValue());
4468 CmdArgs.push_back(A->getValue());
4474 CmdArgs.push_back(A->getValue());
4487 CmdArgs.push_back(A->getValue());
4604 CmdArgs.push_back(A->getValue());
4687 Args.MakeArgString(Twine("-fcf-protection=") + A->getValue()));
4701 StringRef fname = A->getValue();
4801 StringRef Val = A->getValue();
4808 << A->getAsString(Args) << A->getValue();
4829 LanguageStandard = llvm::StringSwitch<StringRef>(StdArg->getValue())
4981 Args.MakeArgString(Twine("-fnew-alignment=") + A->getValue()));
5000 PackStructStr += A->getValue();
5012 MaxTypeAlignStr += A->getValue();
5045 StringRef value = inputCharset->getValue();
5053 StringRef value = execCharset->getValue();
5129 CmdArgs.push_back(A->getValue());
5135 F = FinalOutput->getValue();
5158 Extension += A->getValue();
5169 CmdArgs.push_back(A->getValue());
5175 CmdArgs.push_back(A->getValue());
5208 CmdArgs.push_back(Args.MakeArgString(A->getValue()));
5222 CmdArgs.push_back(A->getValue());
5229 Args.MakeArgString(Twine("-fpass-plugin=") + A->getValue()));
5246 if (StringRef(Arg->getValue()) != "-finclude-default-header")
5247 CmdArgs.push_back(Arg->getValue());
5259 if (StringRef(A->getValue(0)) == "-disable-llvm-optzns") {
5366 llvm::Triple T(Tgts->getValue(i));
5604 StringRef value = runtimeArg->getValue();
5630 StringRef value = abiArg->getValue();
5657 StringRef value = abiArg->getValue();
5978 StringRef GuardArgs = A->getValue();
6021 SmallString<128> OutputFilename(OutputOpt->getValue());
6045 StringRef Value = A->getValue();
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp 211 const char *GPUName = A->getValue();
227 return A->getValue();
236 StringRef CPU = A->getValue();
274 return A->getValue();
290 return A->getValue();
317 return A->getValue();
348 StringRef(LtoJobsArg->getValue()).getAsInteger(10, Parallelism))
350 << LtoJobsArg->getValue();
396 OOpt = A->getValue();
441 StringRef FName = A->getValue();
462 SmallString<128> Path(CSPGOGenerateArg->getValue());
471 ProfileUseArg->getNumValues() == 0 ? "" : ProfileUseArg->getValue());
810 if (StringRef(A->getValue()) == "single")
815 SmallString<128> T(FinalOutput->getValue());
1002 StringRef Model = ModelArg ? ModelArg->getValue() : "";
1135 if (StringRef(A->getValue()).getAsInteger(10, Value) || Value > 65536)
1137 << A->getAsString(Args) << A->getValue();
1251 << Args.getLastArg(options::OPT_rtlib_EQ)->getValue() << "MSVC";
1375 StringRef SaveStats = A->getValue();
tools/clang/lib/Driver/ToolChains/Cuda.cpp 376 OOpt = llvm::StringSwitch<const char *>(A->getValue())
422 Exec = A->getValue();
435 const StringRef ArchStr = A->getValue();
531 CmdArgs.push_back(Args.MakeArgString(Twine("-L") + A->getValue()));
682 LibraryPaths.push_back(A->getValue());
797 if (BoundArch.empty() || A->getValue(0) != BoundArch)
800 unsigned Index = Args.getBaseArgs().MakeIndex(A->getValue(1));
tools/clang/lib/Driver/ToolChains/Darwin.cpp 190 return llvm::StringSwitch<bool>(A->getValue())
209 if (!Driver::GetReleaseVersion(A->getValue(), Version))
393 CmdArgs.push_back(A->getValue());
476 F += A->getValue();
490 std::string("-lto-pass-remarks-hotness-threshold=") + A->getValue();
499 std::string("-lto-pass-remarks-filter=") + A->getValue();
507 std::string("-lto-pass-remarks-format=") + A->getValue();
643 CmdArgs.push_back(Args.MakeArgString(std::string("-F") + A->getValue()));
647 if (A->getValue() == StringRef("Accelerate")) {
840 if (const char *Arch = ArmMachOArchName(A->getValue()))
844 if (const char *Arch = ArmMachOArchNameCPU(A->getValue()))
959 StringRef XcodePathForSDK = getXcodeDeveloperPath(A->getValue());
1147 StringRef Value = A->getValue();
1278 return Argument->getValue();
1526 StringRef isysroot = A->getValue();
1641 StringRef isysroot = A->getValue();
1661 if (!getVFS().exists(A->getValue()))
1662 getDriver().Diag(clang::diag::warn_missing_sysroot) << A->getValue();
1807 StringRef SDK = getSDKName(A->getValue());
2015 SmallString<128> P(A->getValue());
2087 tools::darwin::getArchTypeForMachOArchName(A->getValue(0));
2095 unsigned Index = Args.getBaseArgs().MakeIndex(A->getValue(1));
2150 DAL->AddSeparateArg(A, Opts.getOption(options::OPT_MF), A->getValue());
tools/clang/lib/Driver/ToolChains/FreeBSD.cpp 65 StringRef v = A->getValue();
214 StringRef v = A->getValue();
tools/clang/lib/Driver/ToolChains/Fuchsia.cpp 237 StringRef Value = A->getValue();
249 StringRef Value = A->getValue();
tools/clang/lib/Driver/ToolChains/Gnu.cpp 54 StringRef CPUArg(A->getValue());
656 StringRef Value = A->getValue();
713 StringRef MArch = A->getValue();
812 if (StringRef(A->getValue()) == "2008")
917 A->getValue() == StringRef("soft"));
1739 return A->getValue();
tools/clang/lib/Driver/ToolChains/HIP.cpp 105 OOpt = llvm::StringSwitch<const char *>(A->getValue())
119 OptArgs.push_back(A->getValue(0));
160 LlcArgs.push_back(A->getValue(0));
371 if (BoundArch.empty() || A->getValue(0) != BoundArch)
374 unsigned Index = Args.getBaseArgs().MakeIndex(A->getValue(1));
tools/clang/lib/Driver/ToolChains/Hexagon.cpp 41 StringRef Val = A->getValue();
67 HVXFeature = Cpu = A->getValue();
82 HVXLength = A->getValue();
270 OsLibs.emplace_back(A->getValue());
400 Gn = A->getValue();
500 StringRef S(A->getValue());
553 StringRef Value = A->getValue();
580 StringRef CPU = CpuArg ? CpuArg->getValue() : GetDefaultCPU();
tools/clang/lib/Driver/ToolChains/MSP430.cpp 37 return llvm::StringSwitch<StringRef>(MCU->getValue())
59 if (MCU && !isSupportedMCU(MCU->getValue())) {
60 D.Diag(diag::err_drv_clang_unsupported) << MCU->getValue();
68 StringRef HWMult = HWMultArg ? HWMultArg->getValue() : "auto";
169 const StringRef MCU = MCUArg->getValue();
202 Args.MakeArgString("-T" + StringRef(MCUArg->getValue()) + ".ld"));
tools/clang/lib/Driver/ToolChains/MSVC.cpp 427 StringRef GuardArgs = A->getValue();
474 StringRef Lib = A.getValue();
624 StringRef OptLevel = A->getValue();
695 StringRef GuardArgs = A->getValue();
1376 StringRef OptStr = A->getValue();
1471 StringRef Val = A->getValue();
1503 StringRef OptStr = A->getValue();
tools/clang/lib/Driver/ToolChains/MipsLinux.cpp 86 StringRef Value = A->getValue();
tools/clang/lib/Driver/ToolChains/Myriad.cpp 70 CmdArgs.push_back(Args.MakeArgString(A->getValue()));
100 Args.MakeArgString("-cv:" + StringRef(CPUArg->getValue())));
107 Args.MakeArgString(std::string("-i:") + A->getValue(0)));
tools/clang/lib/Driver/ToolChains/NaCl.cpp 342 StringRef Value = A->getValue();
tools/clang/lib/Driver/ToolChains/PS4CPU.cpp 336 LinkerOptName = A->getValue();
381 PrefixDir = A->getValue();
tools/clang/lib/Driver/ToolChains/Solaris.cpp 97 LangStd = LangStandard::getLangStandardForName(Std->getValue());
tools/clang/lib/Driver/ToolChains/WebAssembly.cpp 38 StringRef UseLinker = A->getValue();
187 if (StringRef(A->getValue(0)) == "-enable-emscripten-cxx-exceptions")
205 StringRef Value = A->getValue();
tools/clang/lib/Driver/XRayArgs.cpp 77 StringRef S = A->getValue();
tools/clang/lib/Frontend/CompilerInvocation.cpp 137 StringRef S(A->getValue());
153 switch (A->getValue()[0]) {
196 const char *FuncName = Arg->getValue();
208 StringRef Name = A->getValue();
224 StringRef Name = A->getValue();
240 StringRef Name = A->getValue();
256 StringRef Name = A->getValue();
272 StringRef Name = A->getValue();
334 StringRef CheckerAndPackageList = A->getValue();
346 StringRef configList = A->getValue();
526 StringRef Value = A->getValue();
538 StringRef Value = A->getValue();
559 StringRef Val = RpassArg->getValue();
630 StringRef S = A->getValue();
716 StringRef Name = A->getValue();
731 llvm::StringSwitch<unsigned>(A->getValue())
739 << A->getValue();
744 unsigned Val = llvm::StringSwitch<unsigned>(A->getValue())
751 << A->getValue();
865 StringRef Name = A->getValue();
974 StringRef S = A->getValue();
990 llvm::StringSwitch<std::string>(A->getValue())
1037 StringRef Name = A->getValue();
1105 StringRef Name = A->getValue();
1125 auto DCT = llvm::StringSwitch<llvm::DebugCompressionType>(A->getValue())
1139 F.Filename = A->getValue();
1204 StringRef Val = A->getValue();
1211 StringRef Val = A->getValue();
1220 StringRef Name = A->getValue();
1247 StringRef Name = A->getValue();
1263 StringRef Val = A->getValue();
1292 Opts.OptRecordPasses = A->getValue();
1297 Opts.OptRecordFormat = A->getValue();
1372 StringRef SignScope = A->getValue();
1386 StringRef SignKey = A->getValue();
1448 StringRef Val = A->getValue();
1473 StringRef Value(A->getValue());
1515 Opts.DiagnosticSerializationFile = A->getValue();
1685 unsigned Val = llvm::StringSwitch<unsigned>(A->getValue())
1694 << A->getAsString(Args) << A->getValue();
1728 Opts.FixItSuffix = A->getValue();
1800 Opts.Plugins.emplace_back(A->getValue(0));
1802 Opts.ActionName = A->getValue();
1806 Opts.PluginArgs[AA->getValue(0)].emplace_back(AA->getValue(1));
1806 Opts.PluginArgs[AA->getValue(0)].emplace_back(AA->getValue(1));
1830 ParsedSourceLocation::FromString(A->getValue());
1833 << A->getAsString(Args) << A->getValue();
1863 StringRef Val = A->getValue();
1953 StringRef XValue = A->getValue();
1994 << A->getAsString(Args) << A->getValue();
2046 Opts.UseLibcxx = (strcmp(A->getValue(), "libc++") == 0);
2063 StringRef Val = A->getValue();
2068 Opts.AddPrebuiltModulePath(A->getValue());
2089 Opts.ModuleFormat = A->getValue();
2092 StringRef MacroDef = A->getValue();
2112 std::string Path = A->getValue();
2114 if (IsSysrootSpecified && !IsFramework && A->getValue()[0] == '=') {
2117 llvm::StringRef(A->getValue()).substr(1));
2131 Prefix = A->getValue();
2133 Opts.AddPath(Prefix.str() + A->getValue(), frontend::After, false, true);
2135 Opts.AddPath(Prefix.str() + A->getValue(), frontend::Angled, false, true);
2139 Opts.AddPath(A->getValue(), frontend::After, false, true);
2141 Opts.AddPath(A->getValue(), frontend::Quoted, false, true);
2143 Opts.AddPath(A->getValue(), frontend::System, false,
2146 Opts.AddPath(A->getValue(), frontend::System, true, true);
2148 Opts.AddPath(A->getValue(), frontend::System, /*IsFramework=*/true,
2153 Opts.AddPath(A->getValue(), frontend::CSystem, false, true);
2155 Opts.AddPath(A->getValue(), frontend::CXXSystem, false, true);
2157 Opts.AddPath(A->getValue(), frontend::ObjCSystem, false,true);
2159 Opts.AddPath(A->getValue(), frontend::ObjCXXSystem, false, true);
2167 Opts.AddPath(A->getValue(), Group, false, true);
2174 A->getValue(), A->getOption().matches(OPT_system_header_prefix));
2177 Opts.AddVFSOverlayFile(A->getValue());
2332 StringRef value = arg->getValue();
2423 LangStd = LangStandard::getLangKind(A->getValue());
2426 << A->getAsString(Args) << A->getValue();
2465 StringRef Name = A->getValue();
2474 = llvm::StringSwitch<LangStandard::Kind>(A->getValue())
2484 << A->getAsString(Args) << A->getValue();
2543 StringRef value = arg->getValue();
2595 bool Invalid = GNUCVer.tryParse(A->getValue());
2601 << A->getAsString(Args) << A->getValue();
2628 llvm::StringSwitch<LangOptions::CoreFoundationABI>(A->getValue())
2681 if (VT.tryParse(A->getValue()))
2683 << A->getValue();
2707 if (auto Kind = llvm::StringSwitch<Optional<LaxKind>>(A->getValue())
2715 << A->getAsString(Args) << A->getValue();
2788 Opts.WCharSize = llvm::StringSwitch<unsigned>(A->getValue())
2794 Diags.Report(diag::err_fe_invalid_wchar_type) << A->getValue();
2816 << A->getValue();
2902 switch (llvm::StringSwitch<unsigned>(A->getValue())
2909 << "-faddress-space-map-mangling=" << A->getValue();
2926 A->getValue())
2936 << "-fms-memptr-rep=" << A->getValue();
2944 llvm::StringSwitch<LangOptions::DefaultCallingConvention>(A->getValue())
2953 << "-fdefault-calling-conv=" << A->getValue();
3049 llvm::Triple TT(A->getValue(i));
3059 Diags.Report(diag::err_drv_invalid_omp_target) << A->getValue(i);
3068 Opts.OMPHostIRFile = A->getValue();
3116 StringRef Val = A->getValue();
3143 StringRef Val = A->getValue();
3195 StringRef Ver = A->getValue();
3221 << A->getAsString(Args) << A->getValue();
3288 Opts.DeserializedPCHDeclsToErrorOn.insert(A->getValue());
3291 StringRef Value(A->getValue());
3308 StringRef Name = A->getValue();
3320 Opts.addMacroDef(A->getValue());
3322 Opts.addMacroUndef(A->getValue());
3329 Opts.Includes.emplace_back(A->getValue());
3332 Opts.ChainedIncludes.emplace_back(A->getValue());
3335 std::pair<StringRef, StringRef> Split = StringRef(A->getValue()).split(';');
3346 StringRef Name = A->getValue();
3390 StringRef Value = A->getValue();
3418 if (Version.tryParse(A->getValue()))
3420 << A->getAsString(Args) << A->getValue();
3662 if (StringRef(A->getValue()).getAsInteger(10, Res)) {
3665 << A->getValue();
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp 292 return types::lookupTypeForTypeSpecifier(Arg.getValue());
301 return LangStandard::getLangKind(Arg.getValue());
tools/clang/tools/driver/cc1as_main.cpp 230 llvm::StringSwitch<llvm::DebugCompressionType>(A->getValue())
253 Opts.InputFile = A->getValue();
265 StringRef Name = A->getValue();
300 Opts.EmbedBitcode = llvm::StringSwitch<unsigned>(A->getValue())
tools/dsymutil/dsymutil.cpp 109 InputFiles.push_back(File->getValue());
190 StringRef S = Accelerator->getValue();
231 Options.SymbolMap = SymbolMap->getValue();
244 Options.Archs.push_back(Arch->getValue());
247 Options.LinkOpts.PrependPath = OsoPrependPath->getValue();
250 Options.OutputFile = OutputFile->getValue();
253 Options.Toolchain = Toolchain->getValue();
259 Options.LinkOpts.Threads = atoi(NumThreads->getValue());
tools/lld/COFF/Driver.cpp 98 StringRef s = arg->getValue();
361 parseAligncomm(arg->getValue());
364 parseAlternateName(arg->getValue());
367 if (Optional<StringRef> path = findLib(arg->getValue()))
371 config->entry = addUndefined(mangle(arg->getValue()));
374 checkFailIfMismatch(arg->getValue(), file);
377 addUndefined(arg->getValue());
380 parseMerge(arg->getValue());
383 config->noDefaultLibs.insert(doFindLib(arg->getValue()).lower());
386 parseSection(arg->getValue());
389 parseSubsystem(arg->getValue(), &config->subsystem,
617 os << arg->getSpelling() << sys::path::filename(arg->getValue()) << "\n";
644 DebugKind debug = StringSwitch<DebugKind>(a->getValue())
659 error("/debug: unknown option: " + Twine(a->getValue()));
670 StringRef(a->getValue())
703 return arg->getValue();
1053 if (Optional<StringRef> path = doFindFile(arg->getValue()))
1080 return std::string(arg->getValue());
1083 SmallString<64> path = StringRef(arg->getValue());
1115 v.push_back(arg->getValue());
1121 StringRef s = arg->getValue();
1176 searchPaths.push_back(arg->getValue());
1183 StringRef(arg->getValue()).split(vec, ',');
1197 config->outputFile = arg->getValue();
1235 config->pdbPath = arg->getValue();
1237 config->pdbAltPath = arg->getValue();
1242 config->pdbSourcePath = arg->getValue();
1287 config->machine = getMachineType(arg->getValue());
1289 fatal(Twine("unknown /machine argument: ") + arg->getValue());
1294 config->noDefaultLibs.insert(doFindLib(arg->getValue()).lower());
1302 parseNumbers(arg->getValue(), &config->imageBase);
1306 parseNumbers(arg->getValue(), &config->fileAlign);
1313 parseNumbers(arg->getValue(), &config->stackReserve, &config->stackCommit);
1317 parseGuard(arg->getValue());
1321 parseNumbers(arg->getValue(), &config->heapReserve, &config->heapCommit);
1325 parseVersion(arg->getValue(), &config->majorImageVersion,
1330 parseSubsystem(arg->getValue(), &config->subsystem, &config->majorOSVersion,
1340 StringRef value(arg->getValue());
1352 parseAlternateName(arg->getValue());
1356 addUndefined(arg->getValue());
1360 config->implib = arg->getValue();
1368 std::string str = StringRef(arg->getValue()).lower();
1424 config->ltoCache = arg->getValue();
1429 parseCachePruningPolicy(arg->getValue()),
1430 Twine("/lldltocachepolicy: invalid cache policy: ") + arg->getValue());
1434 checkFailIfMismatch(arg->getValue(), nullptr);
1438 parseMerge(arg->getValue());
1456 parseSection(arg->getValue());
1460 parseNumbers(arg->getValue(), &config->align);
1462 error("/align: not a power of two: " + StringRef(arg->getValue()));
1467 parseAligncomm(arg->getValue());
1472 config->manifestDependency = arg->getValue();
1481 parseManifest(arg->getValue());
1486 parseManifestUAC(arg->getValue());
1490 config->manifestFile = arg->getValue();
1494 config->manifestInput.push_back(arg->getValue());
1523 parseSwaprun(arg->getValue());
1559 if (Optional<StringRef> path = doFindFile(arg->getValue()))
1592 if (Optional<StringRef> path = findFile(arg->getValue()))
1596 if (Optional<StringRef> path = findFile(arg->getValue()))
1608 if (Optional<StringRef> path = findLib(arg->getValue()))
1659 Export e = parseExport(arg->getValue());
1672 parseModuleDefs(arg->getValue());
1693 config->entry = addUndefined(mangle(arg->getValue()));
1712 config->delayLoads.insert(StringRef(arg->getValue()).lower());
1723 getOutputPath((*args.filtered(OPT_INPUT).begin())->getValue());
1830 if (dyn_cast_or_null<LazyArchive>(symtab->find(arg->getValue())))
1831 addUndefined(arg->getValue());
1917 writeDefFile(arg->getValue());
1948 parseOrderFile(arg->getValue());
tools/lld/COFF/DriverUtils.cpp 228 StringRef arg = a->getNumValues() ? a->getValue() : "";
780 StringRef s = arg->getValue();
792 StringRef s = arg->getValue();
tools/lld/Common/Args.cpp 36 if (to_integer(a->getValue(), v, 10))
40 error(spelling + ": number expected, but got '" + a->getValue() + "'");
47 v.push_back(arg->getValue());
54 std::pair<StringRef, StringRef> kv = StringRef(arg->getValue()).split('=');
tools/lld/Common/Reproduce.cpp 57 std::string v = quote(arg.getValue());
tools/lld/ELF/Driver.cpp 362 return arg->getValue();
368 if (key == arg->getValue())
376 if (k1 == arg->getValue())
378 if (k2 == arg->getValue())
386 StringRef v = arg->getValue();
416 if (!isKnownZFlag(arg->getValue()))
417 error("unknown -z value: " + StringRef(arg->getValue()));
526 StringRef s = arg->getValue();
537 if (StringRef(arg->getValue()) == "defs")
539 if (StringRef(arg->getValue()) == "undefs")
592 return arg->getValue();
631 std::tie(name, addr) = StringRef(arg->getValue()).split('=');
636 ret[".text"] = parseSectionAddress(arg->getValue(), args, *arg);
638 ret[".data"] = parseSectionAddress(arg->getValue(), args, *arg);
640 ret[".bss"] = parseSectionAddress(arg->getValue(), args, *arg);
678 StringRef s = arg->getValue();
787 StringRef s = arg->getValue();
975 parseClangOption(saver.save("-mcpu=" + StringRef(arg->getValue())),
979 parseClangOption(arg->getValue(), arg->getSpelling());
983 parseClangOption(arg->getValue(), arg->getSpelling());
997 StringRef s = arg->getValue();
1007 StringRef s = arg->getValue();
1036 if (Optional<MemoryBufferRef> buffer = readFile(arg->getValue())){
1054 if (Optional<MemoryBufferRef> buffer = readFile(arg->getValue()))
1065 if (Optional<MemoryBufferRef> buffer = readFile(arg->getValue()))
1070 {arg->getValue(), /*isExternCpp=*/false, /*hasWildcard=*/false});
1078 config->undefined.push_back(arg->getValue());
1081 if (Optional<std::string> path = searchScript(arg->getValue())) {
1085 error(Twine("cannot find version script ") + arg->getValue());
1155 addLibrary(arg->getValue());
1158 addFile(arg->getValue(), /*withLOption=*/false);
1163 std::tie(from, to) = StringRef(arg->getValue()).split('=');
1165 error("-defsym: syntax error: " + StringRef(arg->getValue()));
1171 if (Optional<std::string> path = searchScript(arg->getValue())) {
1176 error(Twine("cannot find linker script ") + arg->getValue());
1182 config->formatBinary = isFormatBinary(arg->getValue());
1202 if (Optional<MemoryBufferRef> mb = readFile(arg->getValue())) {
1309 StringRef s = arg->getValue();
1325 StringRef s = arg->getValue();
1463 StringRef name = arg->getValue();
1611 StringRef name = arg->getValue();
1732 symtab->insert(arg->getValue())->traced = true;
1967 if (Optional<MemoryBufferRef> buffer = readFile(arg->getValue()))
tools/lld/ELF/DriverUtils.cpp 66 StringRef s = arg->getValue();
78 StringRef s = arg->getValue();
179 os << quote(rewritePath(arg->getValue())) << "\n";
186 os << "-o " << quote(sys::path::filename(arg->getValue())) << "\n";
195 os << arg->getSpelling() << " " << quote(rewritePath(arg->getValue()))
tools/lld/MinGW/Driver.cpp 203 StringRef s = a->getValue();
217 StringRef(majOSVer->getValue()) != StringRef(majSubSysVer->getValue()))
217 StringRef(majOSVer->getValue()) != StringRef(majSubSysVer->getValue()))
221 StringRef(minOSVer->getValue()) != StringRef(minSubSysVer->getValue()))
221 StringRef(minOSVer->getValue()) != StringRef(minSubSysVer->getValue()))
225 StringRef major = majOSVer ? majOSVer->getValue()
226 : majSubSysVer ? majSubSysVer->getValue() : "6";
227 StringRef minor = minOSVer ? minOSVer->getValue()
228 : minSubSysVer ? minSubSysVer->getValue() : "";
232 add("-subsystem:" + StringRef(a->getValue()));
236 add("-implib:" + StringRef(a->getValue()));
238 add("-stack:" + StringRef(a->getValue()));
240 add("-output-def:" + StringRef(a->getValue()));
242 add("-base:" + StringRef(a->getValue()));
244 add("-lldmap:" + StringRef(a->getValue()));
246 add("-reproduce:" + StringRef(a->getValue()));
249 add("-out:" + StringRef(a->getValue()));
257 StringRef v = a->getValue();
294 StringRef s = a->getValue();
306 StringRef s = a->getValue();
320 add("-mllvm:" + StringRef(a->getValue()));
323 add(a->getValue());
331 add("-include:" + StringRef(a->getValue()));
333 add("-includeoptional:" + StringRef(a->getValue()));
335 add("-delayload:" + StringRef(a->getValue()));
339 searchPaths.push_back(a->getValue());
340 add("-libpath:" + StringRef(a->getValue()));
348 if (StringRef(a->getValue()).endswith_lower(".def"))
349 add("-def:" + StringRef(a->getValue()));
351 add(prefix + StringRef(a->getValue()));
354 add(prefix + searchLibrary(a->getValue(), searchPaths, isStatic));
tools/lld/lib/Driver/DarwinLdDriver.cpp 367 arch = MachOLinkingContext::archFromName(archStr->getValue());
369 error("unknown arch named '" + Twine(archStr->getValue()) + "'");
378 if (MachOLinkingContext::isThinObjectFile(inFile->getValue(), arch))
404 if (MachOLinkingContext::parsePackedVersion(minOS->getValue(),
412 if (MachOLinkingContext::parsePackedVersion(minOS->getValue(),
420 if (MachOLinkingContext::parsePackedVersion(minOS->getValue(),
444 ctx.setEntrySymbolName(entry->getValue());
448 ctx.setOutputPath(outpath->getValue());
455 if (parseNumberBase16(imageBase->getValue(), baseAddress)) {
481 ctx.setInstallName(installName->getValue());
496 if (MachOLinkingContext::parsePackedVersion(vers->getValue(), parsedVers)) {
509 if (MachOLinkingContext::parsePackedVersion(vers->getValue(), parsedVers)) {
518 ctx.setBundleLoader(loader->getValue());
522 const char* segName = alignArg->getValue(0);
523 const char* sectName = alignArg->getValue(1);
524 const char* alignStr = alignArg->getValue(2);
548 ctx.appendLLVMOption(llvmArg->getValue());
572 if (std::error_code ec = ctx.createDependencyFile(depInfo->getValue()))
574 depInfo->getValue());
588 ctx.addExistingPathForDebug(existingPath->getValue());
611 sysLibRoots.push_back(syslibRoot->getValue());
622 ctx.addModifiedSearchDir(libPath->getValue());
627 ctx.addFrameworkSearchDir(fwPath->getValue());
659 if (std::error_code ec = parseExportsList(expFile->getValue(), ctx)) {
661 expFile->getValue());
674 ctx.addExportSymbol(symbol->getValue());
685 if (std::error_code ec = parseExportsList(expFile->getValue(), ctx)) {
687 expFile->getValue());
700 ctx.addExportSymbol(symbol->getValue());
921 if (MachOLinkingContext::parsePackedVersion(arg->getValue(),
940 if (MachOLinkingContext::parsePackedVersion(arg->getValue(),
951 if (parseNumberBase16(stackSize->getValue(), stackSizeVal)) {
970 if (std::error_code ec = parseOrderFile(orderFile->getValue(), ctx)) {
971 error(ec.message() + ", processing '-order_file " + orderFile->getValue()
987 if (StringRef(undef->getValue()).equals("error"))
989 else if (StringRef(undef->getValue()).equals("warning"))
991 else if (StringRef(undef->getValue()).equals("suppress"))
993 else if (StringRef(undef->getValue()).equals("dynamic_lookup"))
1045 ctx.addRpath(rPath->getValue());
1061 addFile(arg->getValue(), ctx, globalWholeArchive, false);
1064 addFile(arg->getValue(), ctx, false, true);
1067 addFile(arg->getValue(), ctx, true, false);
1072 resolvedPath = ctx.searchLibrary(arg->getValue());
1075 arg->getValue());
1086 resolvedPath = ctx.findPathForFramework(arg->getValue());
1089 arg->getValue());
1098 if (auto ec = loadFileList(arg->getValue(), ctx, globalWholeArchive)) {
1100 error(EI.message() + ", processing '-filelist " + arg->getValue());
1106 const char* seg = arg->getValue(0);
1107 const char* sect = arg->getValue(1);
1108 const char* fileName = arg->getValue(2);
tools/lld/wasm/Driver.cpp 139 StringRef s = arg->getValue();
274 addLibrary(arg->getValue());
277 addFile(arg->getValue());
300 return arg->getValue();
550 os << quote(relativeToRoot(arg->getValue())) << "\n";
557 os << "-o " << quote(sys::path::filename(arg->getValue())) << "\n";
595 StringRef name = arg->getValue();
665 StringRef path = arg->getValue();
681 v.push_back(arg->getValue());
691 readImportFile(arg->getValue());
700 symtab->trace(arg->getValue());
703 config->exportedSymbols.insert(arg->getValue());
720 handleUndefined(arg->getValue());
725 handleUndefined(arg->getValue());
762 Symbol *sym = symtab->find(arg->getValue());
767 arg->getValue());
tools/lldb/tools/driver/Driver.cpp 206 auto arg_value = arg->getValue();
237 auto arg_value = arg->getValue();
254 auto arg_value = arg->getValue();
263 auto arg_value = arg->getValue();
272 auto arg_value = arg->getValue();
281 auto arg_value = arg->getValue();
292 auto arg_value = arg->getValue();
308 if (auto arg_value = arg->getValue())
317 auto arg_value = arg->getValue();
780 if (const char *error = SBReproducer::Replay(replay_path->getValue())) {
794 if (const char *error = SBReproducer::Capture(capture_path->getValue())) {
tools/llvm-cvtres/llvm-cvtres.cpp 123 MachineType = getMachineType(Arg->getValue());
125 reportError(Twine("Unsupported machine architecture ") + Arg->getValue() +
143 OutputFile = Arg->getValue();
151 StringRef Value(Arg->getValue());
tools/llvm-lipo/llvm-lipo.cpp 305 C.InputFiles.push_back({None, Arg->getValue()});
307 validateArchitectureName(Arg->getValue(0));
308 if (!Arg->getValue(1))
311 C.InputFiles.push_back({StringRef(Arg->getValue(0)), Arg->getValue(1)});
311 C.InputFiles.push_back({StringRef(Arg->getValue(0)), Arg->getValue(1)});
321 if (!Segalign->getValue(1))
325 validateArchitectureName(Segalign->getValue(0));
328 if (!to_integer<uint32_t>(Segalign->getValue(1), AlignmentValue, 16))
330 Twine(Segalign->getValue(1)) +
334 Twine(Segalign->getValue(1)) +
338 "argument to -segalign <arch_type> " + Twine(Segalign->getValue(1)) +
341 auto Entry = C.SegmentAlignments.try_emplace(Segalign->getValue(0),
344 reportError("-segalign " + Twine(Segalign->getValue(0)) +
394 C.ThinArchType = ActionArgs[0]->getValue();
410 if (!Action->getValue(1))
414 validateArchitectureName(Action->getValue(0));
416 {StringRef(Action->getValue(0)), Action->getValue(1)});
416 {StringRef(Action->getValue(0)), Action->getValue(1)});
tools/llvm-objcopy/CopyConfig.cpp 401 Positional.push_back(Arg->getValue());
520 Config.ExtractPartition = Arg->getValue();
523 if (!StringRef(Arg->getValue()).contains('='))
526 auto Old2New = StringRef(Arg->getValue()).split('=');
535 Arg->getValue()))
540 parseRenameSectionValue(StringRef(Arg->getValue()));
550 parseSetSectionAlignment(Arg->getValue());
557 parseSetSectionFlagValue(Arg->getValue());
586 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
590 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
594 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
597 StringRef ArgValue(Arg->getValue());
608 Config.DumpSection.push_back(Arg->getValue());
634 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
638 Arg->getValue(), SymbolMatchStyle,
643 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
647 Arg->getValue(), SymbolMatchStyle,
652 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
656 Arg->getValue(), SymbolMatchStyle,
661 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
665 Arg->getValue(), SymbolMatchStyle,
670 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
674 Arg->getValue(), SymbolMatchStyle,
680 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
684 Arg->getValue(), SymbolMatchStyle,
689 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
693 addSymbolsFromFile(Config.SymbolsToKeep, DC.Alloc, Arg->getValue(),
697 Config.SymbolsToAdd.push_back(Arg->getValue());
714 auto EAddr = getAsInteger<uint64_t>(Arg->getValue());
717 EAddr.getError(), "bad entry point address: '%s'", Arg->getValue());
721 auto EIncr = getAsInteger<int64_t>(Arg->getValue());
725 Arg->getValue());
787 Positional.push_back(Arg->getValue());
827 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
832 Arg->getValue(), SectionMatchStyle, ErrorCallback)))
837 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
842 Arg->getValue(), SymbolMatchStyle, ErrorCallback)))
unittests/Option/OptionParsingTest.cpp 106 EXPECT_EQ("desu", StringRef((*Cs.begin())->getValue()));