Lines Matching refs:sym

82     l->file->addMember(l->sym);  in forceLazy()
92 l->file->makeImport(l->sym); in forceLazy()
161 Symbol *sym; in getSymbolLocations() member
180 Symbol *sym = getSymbol(sc, r.VirtualAddress); in getSymbolLocations() local
182 locations.push_back({sym, *fileLine}); in getSymbolLocations()
183 else if (sym) in getSymbolLocations()
184 locations.push_back({sym, {"", 0}}); in getSymbolLocations()
204 if (loc.sym) in getSymbolLocations()
205 os << ":(" << toString(*loc.sym) << ')'; in getSymbolLocations()
232 Symbol *sym; member
243 os << "undefined symbol: " << toString(*undefDiag.sym); in reportUndefinedSymbol()
266 Symbol *sym = i.second; in loadMinGWSymbols() local
267 auto *undef = dyn_cast<Undefined>(sym); in loadMinGWSymbols()
328 bool SymbolTable::handleMinGWAutomaticImport(Symbol *sym, StringRef name) { in handleMinGWAutomaticImport() argument
354 sym->replaceKeepingName(imp, impSize); in handleMinGWAutomaticImport()
355 sym->isRuntimePseudoReloc = true; in handleMinGWAutomaticImport()
366 if (sc && sc->getRelocs().size() == 1 && *sc->symbols().begin() == sym) { in handleMinGWAutomaticImport()
403 for (Symbol *sym : symbols) { in reportProblemSymbols()
405 if (!sym) in reportProblemSymbols()
407 if (undefs.count(sym)) { in reportProblemSymbols()
408 auto it = firstDiag.find(sym); in reportProblemSymbols()
410 firstDiag[sym] = undefDiags.size(); in reportProblemSymbols()
411 undefDiags.push_back({sym, {{file, symIndex}}}); in reportProblemSymbols()
417 if (Symbol *imp = localImports->lookup(sym)) in reportProblemSymbols()
438 Symbol *sym = i.second; in reportUnresolvable() local
439 auto *undef = dyn_cast<Undefined>(sym); in reportUnresolvable()
440 if (!undef || sym->deferUndefined) in reportUnresolvable()
454 undefs.insert(sym); in reportUnresolvable()
466 Symbol *sym = i.second; in resolveRemainingUndefines() local
467 auto *undef = dyn_cast<Undefined>(sym); in resolveRemainingUndefines()
470 if (!sym->isUsedInRegularObj) in resolveRemainingUndefines()
483 memcpy(sym, d, sizeof(DefinedRegular)); in resolveRemainingUndefines()
485 memcpy(sym, d, sizeof(DefinedAbsolute)); in resolveRemainingUndefines()
487 memcpy(sym, d, sizeof(SymbolUnion)); in resolveRemainingUndefines()
497 replaceSymbol<DefinedLocalImport>(sym, name, d); in resolveRemainingUndefines()
498 localImportChunks.push_back(cast<DefinedLocalImport>(sym)->getChunk()); in resolveRemainingUndefines()
499 localImports[sym] = d; in resolveRemainingUndefines()
509 if (config->autoImport && handleMinGWAutomaticImport(sym, name)) in resolveRemainingUndefines()
515 replaceSymbol<DefinedAbsolute>(sym, name, 0); in resolveRemainingUndefines()
516 undefs.insert(sym); in resolveRemainingUndefines()
526 Symbol *&sym = symMap[CachedHashStringRef(name)]; in insert() local
527 if (!sym) { in insert()
528 sym = reinterpret_cast<Symbol *>(make<SymbolUnion>()); in insert()
529 sym->isUsedInRegularObj = false; in insert()
530 sym->pendingArchiveLoad = false; in insert()
531 sym->canInline = true; in insert()
534 return {sym, inserted}; in insert()
558 void SymbolTable::addLazyArchive(ArchiveFile *f, const Archive::Symbol &sym) { in addLazyArchive() argument
559 StringRef name = sym.getName(); in addLazyArchive()
564 replaceSymbol<LazyArchive>(s, f, sym); in addLazyArchive()
571 f->addMember(sym); in addLazyArchive()
591 void SymbolTable::addLazyDLLSymbol(DLLFile *f, DLLFile::Symbol *sym, in addLazyDLLSymbol() argument
597 replaceSymbol<LazyDLLSymbol>(s, f, sym, n); in addLazyDLLSymbol()
604 f->makeImport(sym); in addLazyDLLSymbol()
674 Symbol *SymbolTable::addAbsolute(StringRef n, COFFSymbolRef sym) { in addAbsolute() argument
680 replaceSymbol<DefinedAbsolute>(s, n, sym); in addAbsolute()
682 if (da->getVA() != sym.getValue()) in addAbsolute()
717 const coff_symbol_generic *sym, SectionChunk *c, in addRegular() argument
724 /*IsExternal*/ true, sym, c); in addRegular()
732 const coff_symbol_generic *sym) { in addComdat() argument
738 /*IsExternal*/ true, sym, nullptr); in addComdat()
748 const coff_symbol_generic *sym, CommonChunk *c) { in addCommon() argument
753 replaceSymbol<DefinedCommon>(s, f, n, size, sym, c); in addCommon()
756 replaceSymbol<DefinedCommon>(s, f, n, size, sym, c); in addCommon()
790 Symbol *sym = findUnderscore(name); in addLibcall() local
791 if (!sym) in addLibcall()
794 if (auto *l = dyn_cast<LazyArchive>(sym)) { in addLibcall()
797 addUndefined(sym->getName()); in addLibcall()
798 } else if (LazyObject *o = dyn_cast<LazyObject>(sym)) { in addLibcall()
800 addUndefined(sym->getName()); in addLibcall()
839 if (Symbol *sym = find(name)) in findMangle() local
840 if (!isa<Undefined>(sym)) in findMangle()
841 return sym; in findMangle()