Lines Matching defs:NSym

84 bool MachOLinkGraphBuilder::isAltEntry(const NormalizedSymbol &NSym) {
85 return NSym.Desc & MachO::N_ALT_ENTRY;
356 auto &NSym = *KV.second;
358 switch (NSym.Type & MachO::N_TYPE) {
360 if (NSym.Value) {
361 if (!NSym.Name)
364 NSym.GraphSymbol = &G->addDefinedSymbol(
366 orc::ExecutorAddrDiff(NSym.Value),
368 1ull << MachO::GET_COMM_ALIGN(NSym.Desc), 0),
369 0, *NSym.Name, orc::ExecutorAddrDiff(NSym.Value), Linkage::Strong,
370 NSym.S, false, NSym.Desc & MachO::N_NO_DEAD_STRIP);
372 if (!NSym.Name)
376 NSym.GraphSymbol = &G->addExternalSymbol(
377 *NSym.Name, 0, (NSym.Desc & MachO::N_WEAK_REF) != 0);
381 if (!NSym.Name)
384 NSym.GraphSymbol = &G->addAbsoluteSymbol(
385 *NSym.Name, orc::ExecutorAddr(NSym.Value), 0, Linkage::Strong,
386 getScope(*NSym.Name, NSym.Type), NSym.Desc & MachO::N_NO_DEAD_STRIP);
389 SecIndexToSymbols[NSym.Sect - 1].push_back(&NSym);
394 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
399 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
403 "Unrecognized symbol type " + Twine(NSym.Type & MachO::N_TYPE) +
405 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
554 auto &NSym = *BlockSyms.back();
558 (NSym.Desc & MachO::N_NO_DEAD_STRIP) || SectionIsNoDeadStrip;
561 NSym, B, SymEnd - orc::ExecutorAddr(NSym.Value), SectionIsText,
562 SymLive, LastCanonicalAddr != orc::ExecutorAddr(NSym.Value));
576 Symbol &MachOLinkGraphBuilder::createStandardGraphSymbol(NormalizedSymbol &NSym,
583 dbgs() << " " << formatv("{0:x16}", NSym.Value) << " -- "
584 << formatv("{0:x16}", NSym.Value + Size) << ": ";
585 if (!NSym.Name)
588 dbgs() << NSym.Name;
598 auto SymOffset = orc::ExecutorAddr(NSym.Value) - B.getAddress();
600 NSym.Name
601 ? G->addDefinedSymbol(B, SymOffset, *NSym.Name, Size, NSym.L, NSym.S,
604 NSym.GraphSymbol = &Sym;
607 setCanonicalSymbol(getSectionByIndex(NSym.Sect - 1), Sym);
709 auto &NSym = *NSyms.back();
713 (NSym.Desc & MachO::N_NO_DEAD_STRIP) || SectionIsNoDeadStrip;
716 if (LastCanonicalAddr != orc::ExecutorAddr(NSym.Value)) {
718 LastCanonicalAddr = orc::ExecutorAddr(NSym.Value);
721 auto &Sym = createStandardGraphSymbol(NSym, B, SymSize, SectionIsText,