Lines Matching refs:sym

33   Symbol *sym;  in insert()  local
36 sym = symVector[p.first->second]; in insert()
39 sym = reinterpret_cast<Symbol *>(make<SymbolUnion>()); in insert()
40 symVector.push_back(sym); in insert()
43 sym->isUsedInRegularObj |= !file || isa<ObjFile>(file); in insert()
44 return {sym, p.second}; in insert()
177 const object::Archive::Symbol &sym) { in addLazy() argument
183 replaceSymbol<LazySymbol>(s, file, sym); in addLazy()
185 file->fetch(sym); in addLazy()
206 static Defined *createBoundarySymbol(const Undefined &sym) { in createBoundarySymbol() argument
208 sym.getName(), /*isec=*/nullptr, /*value=*/-1, /*isPrivateExtern=*/true, in createBoundarySymbol()
212 static void handleSectionBoundarySymbol(const Undefined &sym, StringRef segSect, in handleSectionBoundarySymbol() argument
238 assert(sym.isLive()); in handleSectionBoundarySymbol()
248 osec->sectionStartSymbols.push_back(createBoundarySymbol(sym)); in handleSectionBoundarySymbol()
250 osec->sectionEndSymbols.push_back(createBoundarySymbol(sym)); in handleSectionBoundarySymbol()
253 static void handleSegmentBoundarySymbol(const Undefined &sym, StringRef segName, in handleSegmentBoundarySymbol() argument
257 seg->segmentStartSymbols.push_back(createBoundarySymbol(sym)); in handleSegmentBoundarySymbol()
259 seg->segmentEndSymbols.push_back(createBoundarySymbol(sym)); in handleSegmentBoundarySymbol()
262 void lld::macho::treatUndefinedSymbol(const Undefined &sym, StringRef source) { in treatUndefinedSymbol() argument
264 StringRef name = sym.getName(); in treatUndefinedSymbol()
266 return handleSectionBoundarySymbol(sym, name, Boundary::Start); in treatUndefinedSymbol()
268 return handleSectionBoundarySymbol(sym, name, Boundary::End); in treatUndefinedSymbol()
270 return handleSegmentBoundarySymbol(sym, name, Boundary::Start); in treatUndefinedSymbol()
272 return handleSegmentBoundarySymbol(sym, name, Boundary::End); in treatUndefinedSymbol()
275 if (config->explicitDynamicLookups.count(sym.getName())) { in treatUndefinedSymbol()
276 symtab->addDynamicLookup(sym.getName()); in treatUndefinedSymbol()
281 auto message = [source, &sym]() { in treatUndefinedSymbol()
285 message += ": " + toString(sym); in treatUndefinedSymbol()
289 message += "\n>>> referenced by " + toString(sym.getFile()); in treatUndefinedSymbol()
301 symtab->addDynamicLookup(sym.getName()); in treatUndefinedSymbol()