reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
355 extern OutStruct out;
51 out.importSec->addGOTEntry(sym); 53 out.globalSec->addStaticGOTEntry(sym); 65 out.typeSec->registerType(types[reloc.Index]); 79 out.elemSec->addEntry(cast<FunctionSymbol>(sym));tools/lld/wasm/SyntheticSections.cpp
63 writeUleb128(os, out.elemSec->numEntries(), "TableSize"); 135 import.Memory.Initial = out.memorySec->numMemoryPages; 136 if (out.memorySec->maxMemoryPages != 0 || config->sharedMemory) { 138 import.Memory.Maximum = out.memorySec->maxMemoryPages; 146 uint32_t tableSize = config->tableBase + out.elemSec->numEntries(); 171 import.SigIndex = out.typeSec->lookupType(*functionSym->signature); 179 import.Event.SigIndex = out.typeSec->lookupType(*eventSym->signature); 202 writeUleb128(os, out.typeSec->lookupType(func->signature), "sig index"); 209 out.importSec->getNumImportedFunctions() + inputFunctions.size(); 215 uint32_t tableSize = config->tableBase + out.elemSec->numEntries(); 244 uint32_t globalIndex = out.importSec->getNumImportedGlobals(); 260 out.elemSec->addEntry(F); 305 e->event.Type.SigIndex = out.typeSec->lookupType(e->signature); 314 out.importSec->getNumImportedEvents() + inputEvents.size(); 455 for (const InputFunction *f : out.functionSec->inputFunctions) { 496 unsigned numNames = out.importSec->getNumImportedFunctions(); 497 for (const InputFunction *f : out.functionSec->inputFunctions) 512 for (const Symbol *s : out.importSec->importedSymbols) { 518 for (const InputFunction *f : out.functionSec->inputFunctions) {tools/lld/wasm/Writer.cpp
134 out.linkingSec->addToSymtab(sym); 174 out.producersSec->addInfo(info); 239 out.dylinkSec->memAlign = 0; 241 out.dylinkSec->memAlign = std::max(out.dylinkSec->memAlign, seg->alignment); 241 out.dylinkSec->memAlign = std::max(out.dylinkSec->memAlign, seg->alignment); 272 out.dylinkSec->memSize = memoryPtr; 294 out.dylinkSec->memSize = memoryPtr; 295 out.memorySec->numMemoryPages = 297 log("mem: total pages = " + Twine(out.memorySec->numMemoryPages)); 305 out.memorySec->maxMemoryPages = config->maxMemory / WasmPageSize; 306 log("mem: max pages = " + Twine(out.memorySec->maxMemoryPages)); 335 addSection(out.dylinkSec); 336 addSection(out.typeSec); 337 addSection(out.importSec); 338 addSection(out.functionSec); 339 addSection(out.tableSec); 340 addSection(out.memorySec); 341 addSection(out.globalSec); 342 addSection(out.eventSec); 343 addSection(out.exportSec); 344 addSection(out.startSec); 345 addSection(out.elemSec); 346 addSection(out.dataCountSec); 348 addSection(make<CodeSection>(out.functionSec->inputFunctions)); 353 addSection(out.linkingSec); 358 addSection(out.nameSec); 359 addSection(out.producersSec); 360 addSection(out.targetFeaturesSec); 375 SmallSet<std::string, 8> &allowed = out.targetFeaturesSec->features; 496 out.importSec->addImport(sym); 505 out.exportSec->exports.push_back( 509 out.exportSec->exports.push_back( 513 out.importSec->getNumImportedGlobals() + out.globalSec->numGlobals(); 513 out.importSec->getNumImportedGlobals() + out.globalSec->numGlobals(); 539 out.globalSec->dataAddressGlobals.push_back(d); 544 out.exportSec->exports.push_back(export_); 554 out.linkingSec->addToSymtab(sym); 560 out.linkingSec->addToSymtab(sym); 576 file->typeMap[i] = out.typeSec->registerType(types[i]); 579 for (const Symbol *sym : out.importSec->importedSymbols) { 581 out.typeSec->registerType(*f->signature); 583 out.typeSec->registerType(*e->signature); 586 for (const InputFunction *f : out.functionSec->inputFunctions) 587 out.typeSec->registerType(f->signature); 589 for (const InputEvent *e : out.eventSec->inputEvents) 590 out.typeSec->registerType(e->signature); 608 out.importSec->seal(); 611 out.functionSec->addFunction(func); 616 out.functionSec->addFunction(func); 620 out.globalSec->addGlobal(global); 625 out.globalSec->addGlobal(global); 631 out.eventSec->addEvent(event); 634 out.globalSec->assignIndexes(); 960 out.dylinkSec = make<DylinkSection>(); 961 out.typeSec = make<TypeSection>(); 962 out.importSec = make<ImportSection>(); 963 out.functionSec = make<FunctionSection>(); 964 out.tableSec = make<TableSection>(); 965 out.memorySec = make<MemorySection>(); 966 out.globalSec = make<GlobalSection>(); 967 out.eventSec = make<EventSection>(); 968 out.exportSec = make<ExportSection>(); 969 out.startSec = make<StartSection>(segments.size()); 970 out.elemSec = make<ElemSection>(); 971 out.dataCountSec = make<DataCountSection>(segments); 972 out.linkingSec = make<LinkingSection>(initFunctions, segments); 973 out.nameSec = make<NameSection>(); 974 out.producersSec = make<ProducersSection>(); 975 out.targetFeaturesSec = make<TargetFeaturesSection>(); 1044 log("Defined Functions: " + Twine(out.functionSec->inputFunctions.size())); 1045 log("Defined Globals : " + Twine(out.globalSec->numGlobals())); 1046 log("Defined Events : " + Twine(out.eventSec->inputEvents.size())); 1048 Twine(out.importSec->getNumImportedFunctions())); 1049 log("Global Imports : " + Twine(out.importSec->getNumImportedGlobals())); 1050 log("Event Imports : " + Twine(out.importSec->getNumImportedEvents()));