reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/lld/include/lld/Common/Memory.h
   32 extern llvm::StringSaver saver;

References

tools/lld/COFF/Driver.cpp
  151     return saver.save("_" + sym);
  350         exp.name = saver.save("_" + exp.name);
  352         exp.extName = saver.save("_" + exp.extName);
  415       return saver.save(path.str());
  419         return saver.save(path.str());
  456   StringRef libName = saver.save("lib" + s.str());
  465     filename = saver.save(filename + ".lib");
  498   StringRef env = saver.save(*envOpt);
  809     config->outputFile = saver.save(m.OutputFile);
  810   config->importName = saver.save(m.ImportName);
  837       e2.name = saver.save(e1.ExtName);
  838       e2.forwardTo = saver.save(e1.Name);
  842     e2.name = saver.save(e1.Name);
  843     e2.extName = saver.save(e1.ExtName);
 1662         e.name = saver.save("_" + e.name);
 1664         e.extName = saver.save("_" + e.extName);
tools/lld/COFF/DriverUtils.cpp
   50   explicit Executor(StringRef s) : prog(saver.save(s)) {}
   51   void add(StringRef s) { args.push_back(saver.save(s)); }
   52   void add(std::string &s) { args.push_back(saver.save(s)); }
   53   void add(Twine s) { args.push_back(saver.save(s)); }
   54   void add(const char *s) { args.push_back(saver.save(s)); }
   60     StringRef exe = saver.save(*exeOrErr);
  608       return saver.save("_" + sym);
  615     sym = saver.save("_" + sym);
  822   cl::ExpandResponseFiles(saver, getQuotingStyle(args), expandedArgv);
  905   cl::TokenizeWindowsCommandLine(s, saver, tokens);
tools/lld/COFF/InputFiles.cpp
  807   return std::make_pair(saver.save(ret->first), ret->second);
  838   StringRef name = saver.save(StringRef(buf + sizeof(*hdr)));
  839   StringRef impName = saver.save("__imp_" + name);
  895       saver.save(archiveName + path +
  906     comdat[i] = symtab->addComdat(this, saver.save(obj->getComdatTable()[i]));
  908     StringRef symName = saver.save(objSym.getName());
  919       Symbol *alias = symtab->addUndefined(saver.save(fallback));
tools/lld/COFF/SymbolTable.cpp
  120   return std::make_pair(saver.save(lineInfo.FileName), lineInfo.Line);
tools/lld/ELF/AArch64ErrataFix.cpp
  398       saver.save("__CortexA53843419_" + utohexstr(getLDSTAddr())), STT_FUNC, 0,
  400   addSyntheticLocal(saver.save("$x"), STT_NOTYPE, 0, 0, *this);
tools/lld/ELF/ARMErrataFix.cpp
  142       saver.save("__CortexA8657417_" + utohexstr(getBranchAddr())), STT_FUNC,
  144   addSyntheticLocal(saver.save(isARM ? "$a" : "$t"), STT_NOTYPE, 0, 0, *this);
tools/lld/ELF/Driver.cpp
  975     parseClangOption(saver.save("-mcpu=" + StringRef(arg->getValue())),
 1619     Symbol *real = addUndefined(saver.save("__real_" + name));
 1620     Symbol *wrap = addUndefined(saver.save("__wrap_" + name));
tools/lld/ELF/DriverUtils.cpp
  104       v.push_back(saver.save(s + "=" + args[i + 1]).data());
  127   cl::ExpandResponseFiles(saver, getQuotingStyle(args), vec);
tools/lld/ELF/InputFiles.cpp
  107     path = saver.save(config->chroot + path);
 1309     symtab->addSymbol(SharedSymbol{*this, saver.save(name), sym.getBinding(),
 1375                        ? saver.save(path)
 1376                        : saver.save(archiveName + "(" + path + " at " +
 1403   StringRef name = saver.save(objSym.getName());
 1458   symtab->addSymbol(Defined{nullptr, saver.save(s + "_start"), STB_GLOBAL,
 1460   symtab->addSymbol(Defined{nullptr, saver.save(s + "_end"), STB_GLOBAL,
 1462   symtab->addSymbol(Defined{nullptr, saver.save(s + "_size"), STB_GLOBAL,
 1511       symtab->addSymbol(LazyObject{*this, saver.save(sym.getName())});
tools/lld/ELF/InputSection.cpp
  233     name = saver.save("." + name.substr(2));
tools/lld/ELF/MarkLive.cpp
  263       cNamedSections[saver.save("__start_" + sec->name)].push_back(sec);
  264       cNamedSections[saver.save("__stop_" + sec->name)].push_back(sec);
tools/lld/ELF/ScriptParser.cpp
  283       driver->addFile(saver.save(path), /*withLOption=*/false);
  294       driver->addFile(saver.save(config->sysroot + "/" + s.substr(1)),
  302       driver->addFile(saver.save(*path), /*withLOption=*/true);
tools/lld/ELF/SyntheticSections.cpp
   74     s = saver.save(Twine("Linker: ") + getLLDVersion());
  256   StringRef s = saver.save(config->dynamicLinker);
tools/lld/ELF/Thunks.cpp
  353   addSymbol(saver.save("__AArch64AbsLongThunk_" + destination.getName()),
  379   addSymbol(saver.save("__AArch64ADRPThunk_" + destination.getName()), STT_FUNC,
  479   addSymbol(saver.save("__ARMv7ABSLongThunk_" + destination.getName()),
  497   addSymbol(saver.save("__Thumbv7ABSLongThunk_" + destination.getName()),
  518   addSymbol(saver.save("__ARMV7PILongThunk_" + destination.getName()), STT_FUNC,
  539   addSymbol(saver.save("__ThumbV7PILongThunk_" + destination.getName()),
  554   addSymbol(saver.save("__ARMv5ABSLongThunk_" + destination.getName()),
  580   addSymbol(saver.save("__ARMV5PILongThunk_" + destination.getName()), STT_FUNC,
  610   addSymbol(saver.save("__Thumbv6MABSLongThunk_" + destination.getName()),
  636   addSymbol(saver.save("__Thumbv6MPILongThunk_" + destination.getName()),
  654   addSymbol(saver.save("__LA25Thunk_" + destination.getName()), STT_FUNC, 0,
  678       saver.save("__microLA25Thunk_" + destination.getName()), STT_FUNC, 0, isec);
  702       saver.save("__microLA25Thunk_" + destination.getName()), STT_FUNC, 0, isec);
  757   addSymbol(saver.save(os.str()), STT_FUNC, 0, isec);
  783   Defined *s = addSymbol(saver.save("__plt_" + destination.getName()), STT_FUNC,
  794   addSymbol(saver.save("__long_branch_" + destination.getName()), STT_FUNC, 0,
tools/lld/ELF/Writer.cpp
  105         return saver.save(".rela" + out->name);
  106       return saver.save(".rel" + out->name);
 2016   addOptionalRegular(saver.save("__start_" + s), sec, 0, STV_PROTECTED);
 2017   addOptionalRegular(saver.save("__stop_" + s), sec, -1, STV_PROTECTED);
tools/lld/MinGW/Driver.cpp
  102   cl::ExpandResponseFiles(saver, getQuotingStyle(), vec);
tools/lld/tools/lld/lld.cpp
   86   cl::ExpandResponseFiles(saver, getDefaultQuotingStyle(), expandedArgs);
tools/lld/wasm/Driver.cpp
  165   cl::ExpandResponseFiles(saver, cl::TokenizeGNUCommandLine, vec);
  603     Symbol *real = addUndefined(saver.save("__real_" + name));
  604     Symbol *wrap = addUndefined(saver.save("__wrap_" + name));
tools/lld/wasm/InputFiles.cpp
  519   StringRef name = saver.save(objSym.getName());
  542       mb.getBuffer(), saver.save(archiveName + mb.getBufferIdentifier()))));
tools/lld/wasm/SymbolTable.cpp
  656     StringRef debugName = saver.save("undefined:" + toString(*sym));
  721         StringRef debugName = saver.save("unreachable:" + toString(*f));
tools/lld/wasm/Writer.cpp
  162       name = saver.save("reloc." + sec->name);
  330   symtab->addOptionalDataSymbol(saver.save("__start_" + name), start);
  331   symtab->addOptionalDataSymbol(saver.save("__stop_" + name), stop);
  711   ArrayRef<uint8_t> body = arrayRefFromStringRef(saver.save(functionBody));