Lines Matching refs:Sym

89     Symbol *Sym;  in getSymbolLocations()  member
103 Symbol *Sym = getSymbol(SC, R.VirtualAddress); in getSymbolLocations() local
104 if (!FileLine.first.empty() || Sym) in getSymbolLocations()
105 Locations.push_back({Sym, FileLine}); in getSymbolLocations()
120 if (Loc.Sym) in getSymbolLocations()
121 OS << ":(" << toString(*Loc.Sym) << ')'; in getSymbolLocations()
128 Symbol *Sym = I.second; in loadMinGWAutomaticImports() local
129 auto *Undef = dyn_cast<Undefined>(Sym); in loadMinGWAutomaticImports()
132 if (!Sym->IsUsedInRegularObj) in loadMinGWAutomaticImports()
148 L->File->addMember(&L->Sym); in loadMinGWAutomaticImports()
152 bool SymbolTable::handleMinGWAutomaticImport(Symbol *Sym, StringRef Name) { in handleMinGWAutomaticImport() argument
180 Sym->replaceKeepingName(Imp, ImpSize); in handleMinGWAutomaticImport()
181 Sym->IsRuntimePseudoReloc = true; in handleMinGWAutomaticImport()
192 if (SC && SC->Relocs.size() == 1 && *SC->symbols().begin() == Sym) { in handleMinGWAutomaticImport()
206 Symbol *Sym = I.second; in reportRemainingUndefines() local
207 auto *Undef = dyn_cast<Undefined>(Sym); in reportRemainingUndefines()
210 if (!Sym->IsUsedInRegularObj) in reportRemainingUndefines()
223 memcpy(Sym, D, sizeof(DefinedRegular)); in reportRemainingUndefines()
225 memcpy(Sym, D, sizeof(DefinedAbsolute)); in reportRemainingUndefines()
227 memcpy(Sym, D, sizeof(SymbolUnion)); in reportRemainingUndefines()
237 replaceSymbol<DefinedLocalImport>(Sym, Name, D); in reportRemainingUndefines()
238 LocalImportChunks.push_back(cast<DefinedLocalImport>(Sym)->getChunk()); in reportRemainingUndefines()
239 LocalImports[Sym] = D; in reportRemainingUndefines()
249 if (Config->MinGW && handleMinGWAutomaticImport(Sym, Name)) in reportRemainingUndefines()
255 replaceSymbol<DefinedAbsolute>(Sym, Name, 0); in reportRemainingUndefines()
256 Undefs.insert(Sym); in reportRemainingUndefines()
273 for (Symbol *Sym : File->getSymbols()) { in reportRemainingUndefines()
275 if (!Sym) in reportRemainingUndefines()
277 if (Undefs.count(Sym)) in reportRemainingUndefines()
278 errorOrWarn("undefined symbol: " + toString(*Sym) + in reportRemainingUndefines()
281 if (Symbol *Imp = LocalImports.lookup(Sym)) in reportRemainingUndefines()
291 Symbol *&Sym = SymMap[CachedHashStringRef(Name)]; in insert() local
292 if (!Sym) { in insert()
293 Sym = reinterpret_cast<Symbol *>(make<SymbolUnion>()); in insert()
294 Sym->IsUsedInRegularObj = false; in insert()
295 Sym->PendingArchiveLoad = false; in insert()
298 return {Sym, Inserted}; in insert()
320 L->File->addMember(&L->Sym); in addUndefined()
326 void SymbolTable::addLazy(ArchiveFile *F, const Archive::Symbol Sym) { in addLazy() argument
327 StringRef Name = Sym.getName(); in addLazy()
332 replaceSymbol<Lazy>(S, F, Sym); in addLazy()
339 F->addMember(&Sym); in addLazy()
353 Symbol *SymbolTable::addAbsolute(StringRef N, COFFSymbolRef Sym) { in addAbsolute() argument
359 replaceSymbol<DefinedAbsolute>(S, N, Sym); in addAbsolute()
390 const coff_symbol_generic *Sym, in addRegular() argument
397 /*IsExternal*/ true, Sym, C); in addRegular()
405 const coff_symbol_generic *Sym) { in addComdat() argument
411 /*IsExternal*/ true, Sym, nullptr); in addComdat()
420 const coff_symbol_generic *Sym, CommonChunk *C) { in addCommon() argument
425 replaceSymbol<DefinedCommon>(S, F, N, Size, Sym, C); in addCommon()
428 replaceSymbol<DefinedCommon>(S, F, N, Size, Sym, C); in addCommon()
490 if (Symbol *Sym = find(Name)) in findMangle() local
491 if (!isa<Undefined>(Sym)) in findMangle()