Lines Matching refs:StringRef
98 static std::pair<StringRef, StringRef> getOldNewOptions(opt::InputArgList &args,
104 StringRef s = arg->getValue();
105 std::pair<StringRef, StringRef> ret = s.split(';');
113 static std::string getOutputPath(StringRef path) {
114 StringRef ext = ".exe";
124 static bool isCrtend(StringRef s) {
161 static StringRef mangle(StringRef sym) {
168 static bool findUnderscoreMangle(StringRef sym) {
185 StringRef filename = mb->getBufferIdentifier();
241 void LinkerDriver::enqueuePath(StringRef path, bool wholeArchive, bool lazy) {
265 void LinkerDriver::addArchiveBuffer(MemoryBufferRef mb, StringRef symName,
266 StringRef parentName,
293 StringRef parentName) {
295 auto reportBufferError = [=](Error &&e, StringRef childName) {
331 static bool isDecorated(StringRef sym) {
339 StringRef s = file->getDirectives();
350 for (StringRef e : directives.exports) {
370 for (StringRef inc : directives.includes)
382 if (Optional<StringRef> path = findLib(arg->getValue()))
421 StringRef LinkerDriver::doFindFile(StringRef filename) {
422 bool hasPathSep = (filename.find_first_of("/\\") != StringRef::npos);
426 for (StringRef dir : searchPaths) {
440 static Optional<sys::fs::UniqueID> getUniqueID(StringRef path) {
449 Optional<StringRef> LinkerDriver::findFile(StringRef filename) {
450 StringRef path = doFindFile(filename);
465 StringRef LinkerDriver::doFindLibMinGW(StringRef filename) {
471 StringRef libName = saver.save("lib" + s.str());
476 StringRef LinkerDriver::doFindLib(StringRef filename) {
481 StringRef ret = doFindFile(filename);
492 Optional<StringRef> LinkerDriver::findLib(StringRef filename) {
498 StringRef path = doFindLib(filename);
513 StringRef env = saver.save(*envOpt);
515 StringRef path;
521 Symbol *LinkerDriver::addUndefined(StringRef name) {
530 StringRef LinkerDriver::mangleMaybe(Symbol *s) {
553 StringRef LinkerDriver::findDefaultEntry() {
610 ArrayRef<StringRef> filePaths,
611 ArrayRef<StringRef> searchPaths) {
640 for (StringRef path : searchPaths) {
645 for (StringRef path : filePaths)
685 SmallVector<StringRef, 3> types;
686 StringRef(a->getValue())
689 for (StringRef type : types) {
723 StringRef outFile = config->outputFile;
730 SmallString<128> out = StringRef(config->outputFile);
819 static void parseModuleDefs(StringRef path) {
854 StringRef(e1.Name).contains('.')) {
889 static void parseOrderFile(StringRef arg) {
898 DenseSet<StringRef> set;
905 StringRef path = arg.substr(1);
913 for (StringRef arg : args::getLines(mb->getMemBufferRef())) {
974 static void parsePDBAltPath(StringRef altPath) {
976 StringRef pdbBasename =
978 StringRef binaryExtension =
992 if ((firstMark = altPath.find('%', cursor)) == StringRef::npos ||
993 (secondMark = altPath.find('%', firstMark + 1)) == StringRef::npos) {
1002 StringRef var = altPath.substr(firstMark, secondMark - firstMark + 1);
1072 if (Optional<StringRef> path = doFindFile(arg->getValue()))
1102 SmallString<64> path = StringRef(arg->getValue());
1122 if (argsArr.size() > 1 && StringRef(argsArr[1]).equals_lower("/lib")) {
1142 StringRef s = arg->getValue();
1157 StringRef v(arg->getValue());
1212 SmallVector<StringRef, 8> vec;
1213 StringRef(arg->getValue()).split(vec, ',');
1214 for (StringRef s : vec) {
1283 for (const StringRef value : args.getAllArgValues(OPT_pdbstream)) {
1284 const std::pair<StringRef, StringRef> nameFile = value.split("=");
1285 const StringRef name = nameFile.first;
1394 StringRef value(arg->getValue());
1422 std::string str = StringRef(arg->getValue()).lower();
1423 SmallVector<StringRef, 1> vec;
1424 StringRef(str).split(vec, ',');
1425 for (StringRef s : vec) {
1439 StringRef optLevel = s.substr(7);
1443 StringRef jobs = s.substr(11);
1448 StringRef n = s.substr(17);
1516 error("/align: not a power of two: " + StringRef(arg->getValue()));
1632 if (Optional<StringRef> path = doFindFile(arg->getValue()))
1640 auto isWholeArchive = [&](StringRef path) -> bool {
1665 if (Optional<StringRef> path = findFile(arg->getValue()))
1669 if (Optional<StringRef> path = findFile(arg->getValue()))
1681 if (Optional<StringRef> path = findLib(arg->getValue()))
1715 ArrayRef<StringRef>(searchPaths).slice(1)));
1770 StringRef s = (config->machine == I386) ? "__DllMainCRTStartup@12"
1779 StringRef s = findDefaultEntry();
1789 config->delayLoads.insert(StringRef(arg->getValue()).lower());
1882 StringRef from = pair.first;
1883 StringRef to = pair.second;
2001 StringRef name = pair.first;