Lines Matching refs:StringRef
92 static ImportNameType getNameType(StringRef Sym, StringRef ExtName,
109 static Expected<std::string> replace(StringRef S, StringRef From,
110 StringRef To) {
114 if (Pos == StringRef::npos && From.startswith("_") && To.startswith("_")) {
120 if (Pos == StringRef::npos) {
122 StringRef(Twine(S + ": replacing '" + From +
142 StringRef ImportName;
143 StringRef Library;
148 ObjectFactory(StringRef S, MachineTypes M)
171 NewArchiveMember createShortImport(StringRef Sym, uint16_t Ordinal,
175 NewArchiveMember createWeakExternal(StringRef Sym, StringRef Weak, bool Imp);
315 StringRef F{reinterpret_cast<const char *>(Buffer.data()), Buffer.size()};
376 StringRef F{reinterpret_cast<const char *>(Buffer.data()), Buffer.size()};
458 StringRef F{reinterpret_cast<const char *>(Buffer.data()), Buffer.size()};
462 NewArchiveMember ObjectFactory::createShortImport(StringRef Sym,
487 return {MemoryBufferRef(StringRef(Buf, Size), ImportName)};
490 NewArchiveMember ObjectFactory::createWeakExternal(StringRef Sym,
491 StringRef Weak, bool Imp) {
558 StringRef Prefix = Imp ? "__imp_" : "";
568 return {MemoryBufferRef(StringRef(Buf, Buffer.size()), ImportName)};
571 Error writeImportLibrary(StringRef ImportName, StringRef Path,
597 StringRef SymbolName = E.SymbolName.empty() ? E.Name : E.SymbolName;