/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | Symbols.h | 33 class Defined; variable 248 void resolve(const Defined &other); 257 void checkDuplicate(const Defined &other) const; 260 bool shouldReplace(const Defined &other) const; 373 class Defined : public Symbol { 375 Defined(InputFile *file, StringRef name, uint8_t binding, uint8_t stOther, in Defined() function 519 static Defined *bss; 522 static Defined *etext1; 523 static Defined *etext2; 526 static Defined *edata1; [all …]
|
H A D | Symbols.cpp | 39 AssertSymbol<Defined>(); in assertSymbols() 61 Defined *ElfSym::bss; 62 Defined *ElfSym::etext1; 63 Defined *ElfSym::etext2; 64 Defined *ElfSym::edata1; 65 Defined *ElfSym::edata2; 66 Defined *ElfSym::end1; 67 Defined *ElfSym::end2; 68 Defined *ElfSym::globalOffsetTable; 69 Defined *ElfSym::mipsGp; [all …]
|
H A D | MapFile.cpp | 41 SmallVector<std::pair<Defined *, uint64_t>, 0>>; 56 static std::vector<Defined *> getSymbols() { in getSymbols() 57 std::vector<Defined *> v; in getSymbols() 60 if (auto *dr = dyn_cast<Defined>(b)) in getSymbols() 68 static SymbolMapTy getSectionSyms(ArrayRef<Defined *> syms) { in getSectionSyms() 70 for (Defined *dr : syms) in getSectionSyms() 76 SmallPtrSet<Defined *, 4> set; in getSectionSyms() 80 llvm::erase_if(it.second, [&](std::pair<Defined *, uint64_t> a) { in getSectionSyms() argument 93 getSymbolStrings(ArrayRef<Defined *> syms) { in getSymbolStrings() 151 std::vector<Defined *> syms = getSymbols(); in writeMapFile() [all …]
|
H A D | Thunks.h | 16 class Defined; variable 43 Defined *addSymbol(StringRef name, uint8_t type, uint64_t value, 57 Defined *getThunkTargetSym() const { return syms[0]; } in getThunkTargetSym() 61 llvm::SmallVector<Defined *, 3> syms;
|
H A D | AArch64ErrataFix.h | 18 class Defined; variable 40 llvm::DenseMap<InputSection *, std::vector<const Defined *>> sectionMap;
|
H A D | ARMErrataFix.h | 18 class Defined; variable 40 llvm::DenseMap<InputSection *, std::vector<const Defined *>> sectionMap;
|
H A D | AArch64ErrataFix.cpp | 445 auto *def = dyn_cast<Defined>(b); in init() 460 std::vector<const Defined *> &mapSyms = kv.second; in init() 461 llvm::stable_sort(mapSyms, [](const Defined *a, const Defined *b) { in init() 466 [=](const Defined *a, const Defined *b) { in init() 588 std::vector<const Defined *> &mapSyms = sectionMap[isec]; in patchInputSectionDescription()
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | ObjC.cpp | 169 void parseClass(const Defined *classSym); 195 auto *sym = cast<Defined>(r.referent.get<Symbol *>()); in getReferentString() 289 if (auto *d = dyn_cast<Defined>(classSym)) in parseCategory() 304 void ObjcCategoryChecker::parseClass(const Defined *classSym) { in parseClass() 474 void emitAndLinkPointerList(Defined *parentSym, uint32_t linkAtOffset, 478 Defined *emitAndLinkProtocolList(Defined *parentSym, uint32_t linkAtOffset, 482 Defined *emitCategory(const ClassExtensionInfo &extInfo); 483 Defined *emitCatListEntrySec(const std::string &forCategoryName, 486 Defined *emitCategoryBody(const std::string &name, const Defined *nameSym, 489 Defined *emitCategoryName(const std::string &name, ObjFile *objFile); [all …]
|
H A D | Symbols.cpp | 24 static_assert(sizeof(void *) != 8 || sizeof(Defined) == 88, 28 static_assert(sizeof(SymbolUnion) == sizeof(Defined), 55 Defined::Defined(StringRefZ name, InputFile *file, InputSection *isec, in Defined() function in Defined 84 bool Defined::isTlv() const { in isTlv() 88 uint64_t Defined::getVA() const { in getVA() 108 ObjFile *Defined::getObjectFile() const { in getObjectFile() 113 std::string Defined::getSourceLocation() { in getSourceLocation() 120 InputSection *Defined::isec() const { in isec() 125 ConcatInputSection *Defined::unwindEntry() const { in unwindEntry()
|
H A D | SymbolTable.h | 28 class Defined; variable 39 Defined *addDefined(StringRef name, InputFile *, InputSection *, 44 Defined *aliasDefined(Defined *src, StringRef target, InputFile *newFile, 59 Defined *addSynthetic(StringRef name, InputSection *, uint64_t value,
|
H A D | ICF.cpp | 133 assert(isa<Defined>(sa)); in equalsConstant() 134 const auto *da = cast<Defined>(sa); in equalsConstant() 135 const auto *db = cast<Defined>(sb); in equalsConstant() 190 const auto *da = cast<Defined>(ra.referent.get<Symbol *>()); in equalsVariable() 191 const auto *db = cast<Defined>(rb.referent.get<Symbol *>()); in equalsVariable() 215 auto hasUnwind = [](Defined *d) { return d->unwindEntry() != nullptr; }; in equalsVariable() 222 const Defined *da = *itA; in equalsVariable() 223 const Defined *db = *itB; in equalsVariable() 228 auto isZero = [](Defined *d) { return d->value == 0; }; in equalsVariable() 291 if (auto *defined = dyn_cast<Defined>(sym)) { in run() [all …]
|
H A D | SymbolTable.cpp | 67 InputSection *toIsec, Defined *skip, in transplantSymbolsAtOffset() 72 return cast<Defined>(s)->value < off; in transplantSymbolsAtOffset() 75 auto *d = cast<Defined>(s); in transplantSymbolsAtOffset() 96 Defined *SymbolTable::addDefined(StringRef name, InputFile *file, in addDefined() 108 if (auto *defined = dyn_cast<Defined>(s)) { in addDefined() 205 Defined *defined = replaceSymbol<Defined>( in addDefined() 212 Defined *SymbolTable::aliasDefined(Defined *src, StringRef target, in aliasDefined() 249 } else if (isa<Defined>(s)) { in addCommon() 266 if (auto *defined = dyn_cast<Defined>(s)) { in addDylib() 330 Defined *SymbolTable::addSynthetic(StringRef name, InputSection *isec, in addSynthetic() [all …]
|
H A D | OutputSection.h | 21 class Defined; variable 80 llvm::TinyPtrVector<Defined *> sectionStartSymbols; 81 llvm::TinyPtrVector<Defined *> sectionEndSymbols;
|
H A D | MarkLive.cpp | 92 const TinyPtrVector<Defined *> &symbols = entry->isec->symbols; in printWhyLive() 112 if (auto *d = dyn_cast<Defined>(s)) { in addSym() 165 for (Defined *d : getInputSection(entry)->symbols) in markTransitively() 181 if (auto *d = dyn_cast<Defined>(s)) in markTransitively() 214 if (auto *defined = dyn_cast<Defined>(sym)) { in markLive() 255 if (auto *defined = dyn_cast_or_null<Defined>(sym)) in markLive()
|
H A D | OutputSection.cpp | 19 for (Defined *d : sectionStartSymbols) in assignAddressesToStartEndSymbols() 21 for (Defined *d : sectionEndSymbols) in assignAddressesToStartEndSymbols()
|
H A D | UnwindInfoSection.h | 23 void addSymbol(const Defined *); 30 const Defined *>
|
H A D | Symbols.h | 81 assert(isa<Defined>(this) || isa<DylibSymbol>(this)); in resolveBranchVA() 117 class Defined : public Symbol { 119 Defined(StringRefZ name, InputFile *file, InputSection *isec, uint64_t value, 357 alignas(Defined) char a[sizeof(Defined)]; 386 if (const auto *defined = dyn_cast<Defined>(sym)) in needsBinding()
|
H A D | UnwindInfoSection.cpp | 187 void UnwindInfoSection::addSymbol(const Defined *d) { in addSymbol() 206 for (const Defined *d : make_second_range(symbols)) in prepare() 257 if (auto *defined = dyn_cast<Defined>(s)) { in prepareRelocations() 279 if (auto *defined = dyn_cast<Defined>(s)) { in prepareRelocations() 307 Defined *const *gotEntry = in prepareRelocations() 308 llvm::find_if(referentIsec->symbols, [&](Defined const *d) { in prepareRelocations() 317 s = make<Defined>("<internal>", /*file=*/nullptr, referentIsec, in prepareRelocations() 334 if (auto *defined = dyn_cast_or_null<Defined>(personality)) { in canonicalizePersonality() 353 const Defined *d = symbolsVec[i].second; in relocateCompactUnwind()
|
H A D | MapFile.cpp | 57 SmallVector<Defined *> deadSymbols; 76 if (auto *d = dyn_cast_or_null<Defined>(sym)) in gatherMapInfo() 158 static uint64_t getSymSizeForMap(Defined *sym) { in getSymSizeForMap() 209 for (Defined *sym : isec->symbols) { in writeMapFile() 263 for (Defined *sym : info.deadSymbols) { in writeMapFile()
|
/freebsd/contrib/llvm-project/lld/COFF/ |
H A D | MapFile.cpp | 67 static void sortUniqueSymbols(std::vector<Defined *> &syms, in sortUniqueSymbols() 70 using SortEntry = std::pair<Defined *, size_t>; in sortUniqueSymbols() 100 std::vector<Defined *> &syms, in getSymbols() 101 std::vector<Defined *> &staticSyms) { in getSymbols() 116 } else if (auto *sym = dyn_cast<Defined>(b)) { in getSymbols() 131 if (auto *thunkSym = dyn_cast<Defined>(file->thunkSym)) in getSymbols() 134 if (auto *impSym = dyn_cast_or_null<Defined>(file->impSym)) in getSymbols() 143 static DenseMap<Defined *, std::string> in getSymbolStrings() 144 getSymbolStrings(const COFFLinkerContext &ctx, ArrayRef<Defined *> syms) { in getSymbolStrings() 148 Defined *sy in getSymbolStrings() [all...] |
H A D | Symbols.h | 157 class Defined : public Symbol { 159 Defined(Kind k, StringRef n) : Symbol(k, n) {} in Defined() function 176 class DefinedCOFF : public Defined { 181 : Defined(k, n), file(f), sym(s) {} in DefinedCOFF() 245 class DefinedAbsolute : public Defined { 248 : Defined(DefinedAbsoluteKind, n), va(s.getValue()), ctx(c) { in DefinedAbsolute() 253 : Defined(DefinedAbsoluteKind, n), va(v), ctx(c) {} in DefinedAbsolute() 270 class DefinedSynthetic : public Defined { 273 : Defined(DefinedSyntheticKind, name), c(c), offset(offset) {} in Defined() function 343 Defined *getWeakAlias(); [all …]
|
H A D | Chunks.h | 35 class Defined; variable 129 Defined *getEntryThunk() const; 130 void setEntryThunk(Defined *entryThunk); 209 RuntimePseudoReloc(Defined *sym, SectionChunk *target, uint32_t targetOffset, in RuntimePseudoReloc() 213 Defined *sym; 412 Defined *entryThunk = nullptr; 552 ImportThunkChunk(COFFLinkerContext &ctx, Defined *s) in ImportThunkChunk() 557 Defined *impSymbol; 563 explicit ImportThunkChunkX64(COFFLinkerContext &ctx, Defined *s); 571 explicit ImportThunkChunkX86(COFFLinkerContext &ctx, Defined *s) in ImportThunkChunkX86() [all …]
|
H A D | DLL.cpp | 318 ThunkChunkX64(Defined *i, Chunk *tm) : imp(i), tailMerge(tm) {} in ThunkChunkX64() 329 Defined *imp = nullptr; 335 TailMergeChunkX64(Chunk *d, Defined *h) : desc(d), helper(h) {} in TailMergeChunkX64() 347 Defined *helper = nullptr; 387 ThunkChunkX86(COFFLinkerContext &ctx, Defined *i, Chunk *tm) in ThunkChunkX86() 403 Defined *imp = nullptr; 412 TailMergeChunkX86(COFFLinkerContext &ctx, Chunk *d, Defined *h) in TailMergeChunkX86() 429 Defined *helper = nullptr; 437 ThunkChunkARM(COFFLinkerContext &ctx, Defined *i, Chunk *tm) in ThunkChunkARM() 455 Defined *imp = nullptr; [all …]
|
H A D | MinGW.cpp | 135 bool AutoExporter::shouldExport(Defined *sym) const { in shouldExport() 185 if (auto *def = dyn_cast_or_null<Defined>(e.sym)) { in writeDefFile() 256 if (Defined *d = dyn_cast<Defined>(w.wrap)) { in wrapSymbols()
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | RecordStreamer.cpp | 25 case Defined: in markDefined() 27 S = Defined; in markDefined() 41 case Defined: in markGlobal() 60 case Defined: in markUsed() 171 case RecordStreamer::Defined: in flushSymverDirectives()
|