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

Declarations

tools/lld/wasm/SymbolTable.h
  119 extern SymbolTable *symtab;

References

tools/lld/wasm/Driver.cpp
   90   symtab = make<SymbolTable>();
  426   Symbol *sym = symtab->find(name);
  442   auto *sym = cast<UndefinedGlobal>(symtab->addUndefinedGlobal(
  456   return symtab->addSyntheticGlobal(name, WASM_SYMBOL_VISIBILITY_HIDDEN,
  470   WasmSym::callCtors = symtab->addSyntheticFunction(
  477     WasmSym::applyRelocs = symtab->addSyntheticFunction(
  506     WasmSym::initMemory = symtab->addSyntheticFunction(
  509     WasmSym::initMemoryFlag = symtab->addSyntheticDataSymbol(
  515     WasmSym::initTLS = symtab->addSyntheticFunction(
  525   WasmSym::dsoHandle = symtab->addOptionalDataSymbol("__dso_handle");
  528     WasmSym::dataEnd = symtab->addOptionalDataSymbol("__data_end");
  531     WasmSym::globalBase = symtab->addOptionalDataSymbol("__global_base");
  532     WasmSym::heapBase = symtab->addOptionalDataSymbol("__heap_base");
  533     WasmSym::definedMemoryBase = symtab->addOptionalDataSymbol("__memory_base");
  534     WasmSym::definedTableBase = symtab->addOptionalDataSymbol("__table_base");
  581   return symtab->addUndefinedFunction(name, "", "", WASM_SYMBOL_UNDEFINED,
  599     Symbol *sym = symtab->find(name);
  633   parallelForEach(symtab->objectFiles, [&](InputFile *file) {
  642     symtab->wrap(w.sym, w.real, w.wrap);
  700     symtab->trace(arg->getValue());
  714     symtab->addFile(f);
  747   symtab->addCombinedLTOObject();
  753   symtab->handleSymbolVariants();
  762     Symbol *sym = symtab->find(arg->getValue());
  773     symtab->handleWeakUndefines();
tools/lld/wasm/InputFiles.cpp
  314     bool isNew = ignoreComdats || symtab->addComdat(comdat);
  403     return symtab->addDefinedFunction(name, flags, this, func);
  413     return symtab->addDefinedData(name, flags, this, seg, offset, size);
  420     return symtab->addDefinedGlobal(name, flags, this, global);
  432     return symtab->addDefinedEvent(name, flags, this, event);
  448     return symtab->addUndefinedFunction(name, sym.Info.ImportName,
  454     return symtab->addUndefinedData(name, flags, this);
  460     return symtab->addUndefinedGlobal(name, sym.Info.ImportName,
  477     symtab->addLazy(this, &sym);
  502   symtab->addFile(obj);
  530       return symtab->addUndefinedFunction(name, "", "", flags, &f, nullptr,
  532     return symtab->addUndefinedData(name, flags, &f);
  536     return symtab->addDefinedFunction(name, flags, &f, nullptr);
  537   return symtab->addDefinedData(name, flags, &f, nullptr, 0, 0);
  550     keptComdats.push_back(symtab->addComdat(s));
tools/lld/wasm/MarkLive.cpp
   68     for (const ObjFile *obj : symtab->objectFiles) {
   82     enqueue(symtab->find(config->entry));
   85   for (Symbol *sym : symtab->getSymbols())
   91     for (const ObjFile *obj : symtab->objectFiles) {
  147     for (const ObjFile *obj : symtab->objectFiles) {
  161     for (InputChunk *c : symtab->syntheticFunctions)
  164     for (InputGlobal *g : symtab->syntheticGlobals)
tools/lld/wasm/SyntheticSections.cpp
   65   writeUleb128(os, symtab->sharedFiles.size(), "Needed");
   66   for (auto *so : symtab->sharedFiles)
tools/lld/wasm/Writer.cpp
  109   for (ObjFile *file : symtab->objectFiles) {
  172   for (ObjFile *file : symtab->objectFiles) {
  330   symtab->addOptionalDataSymbol(saver.save("__start_" + name), start);
  331   symtab->addOptionalDataSymbol(saver.save("__stop_" + name), stop);
  389   for (ObjFile *file : symtab->objectFiles) {
  459   for (ObjFile *file : symtab->objectFiles) {
  481   for (Symbol *sym : symtab->getSymbols()) {
  515   for (Symbol *sym : symtab->getSymbols()) {
  552   for (Symbol *sym : symtab->getSymbols())
  556   for (ObjFile *file : symtab->objectFiles) {
  572   for (ObjFile *file : symtab->objectFiles) {
  594   for (ObjFile *file : symtab->objectFiles) {
  610   for (InputFunction *func : symtab->syntheticFunctions)
  613   for (ObjFile *file : symtab->objectFiles) {
  619   for (InputGlobal *global : symtab->syntheticGlobals)
  622   for (ObjFile *file : symtab->objectFiles) {
  628   for (ObjFile *file : symtab->objectFiles) {
  661   for (ObjFile *file : symtab->objectFiles) {
  936   for (ObjFile *file : symtab->objectFiles) {
 1051     for (ObjFile *file : symtab->objectFiles)