| /openbsd-src/gnu/llvm/llvm/lib/XRay/ |
| H A D | InstrumentationMap.cpp | 54 loadObj(StringRef Filename, object::OwningBinary<object::ObjectFile> &ObjFile, in loadObj() argument 61 if ((!ObjFile.getBinary()->isELF() && !ObjFile.getBinary()->isMachO()) || in loadObj() 62 !(ObjFile.getBinary()->getArch() == Triple::x86_64 || in loadObj() 63 ObjFile.getBinary()->getArch() == Triple::ppc64le || in loadObj() 64 ObjFile.getBinary()->getArch() == Triple::arm || in loadObj() 65 ObjFile.getBinary()->getArch() == Triple::aarch64)) in loadObj() 72 const auto &Sections = ObjFile.getBinary()->sections(); in loadObj() 93 if (ObjFile.getBinary()->isELF()) { in loadObj() 94 uint32_t RelativeRelocation = [](object::ObjectFile *ObjFile) { in loadObj() argument 95 if (const auto *ELFObj = dyn_cast<object::ELF32LEObjectFile>(ObjFile)) in loadObj() [all …]
|
| /openbsd-src/gnu/llvm/lld/COFF/ |
| H A D | DebugTypes.h | 33 class ObjFile; variable 43 TpiSource(COFFLinkerContext &ctx, TpiKind k, ObjFile *f); 123 ObjFile *file; 166 TpiSource *makeTpiSource(COFFLinkerContext &ctx, ObjFile *f); 169 TpiSource *makeUseTypeServerSource(COFFLinkerContext &ctx, ObjFile *file, 171 TpiSource *makePrecompSource(COFFLinkerContext &ctx, ObjFile *file); 172 TpiSource *makeUsePrecompSource(COFFLinkerContext &ctx, ObjFile *file,
|
| H A D | InputFiles.cpp | 137 void ObjFile::parseLazy() { in parseLazy() 155 void ObjFile::parse() { in parse() 173 const coff_section *ObjFile::getSection(uint32_t i) { in getSection() 188 void ObjFile::initializeChunks() { in initializeChunks() 200 SectionChunk *ObjFile::readSection(uint32_t sectionNumber, in readSection() 277 void ObjFile::includeResourceChunks() { in includeResourceChunks() 281 void ObjFile::readAssociativeDefinition( in readAssociativeDefinition() 286 void ObjFile::readAssociativeDefinition(COFFSymbolRef sym, in readAssociativeDefinition() 326 void ObjFile::recordPrevailingSymbolForMingw( in recordPrevailingSymbolForMingw() 343 void ObjFile::maybeAssociateSEHForMingw( in maybeAssociateSEHForMingw() [all …]
|
| H A D | SymbolTable.cpp | 43 cast<ObjFile>(file)->parseLazy(); in addFile() 46 if (auto *f = dyn_cast<ObjFile>(file)) { in addFile() 158 getSymbolLocations(ObjFile *file, uint32_t symIndex, size_t maxStrings) { in getSymbolLocations() 209 std::vector<std::string> getSymbolLocations(ObjFile *file, uint32_t symIndex) { in getSymbolLocations() 215 if (auto *o = dyn_cast<ObjFile>(file)) in getSymbolLocations() 423 for (ObjFile *file : ctx.objFileInstances) in reportProblemSymbols() 607 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc, in getSourceLocationObj() 628 if (auto *o = dyn_cast<ObjFile>(file)) in getSourceLocation() 650 if (d && isa<ObjFile>(d->getFile())) { in reportDuplicate() 781 for (ObjFile *file : ctx.objFileInstances) { in getChunks() [all …]
|
| H A D | DebugTypes.cpp | 107 UseTypeServerSource(COFFLinkerContext &ctx, ObjFile *f, TypeServer2Record ts) in UseTypeServerSource() 127 PrecompSource(COFFLinkerContext &ctx, ObjFile *f) : TpiSource(ctx, PCH, f) { in PrecompSource() 151 UsePrecompSource(COFFLinkerContext &ctx, ObjFile *f, PrecompRecord precomp) in UsePrecompSource() 163 PrecompSource *findPrecompSource(ObjFile *file, PrecompRecord &pr); 164 Expected<PrecompSource *> findPrecompMap(ObjFile *file, PrecompRecord &pr); 173 TpiSource::TpiSource(COFFLinkerContext &ctx, TpiKind k, ObjFile *f) in TpiSource() 184 TpiSource *lld::coff::makeTpiSource(COFFLinkerContext &ctx, ObjFile *file) { in makeTpiSource() 198 ObjFile *file, in makeUseTypeServerSource() 203 TpiSource *lld::coff::makePrecompSource(COFFLinkerContext &ctx, ObjFile *file) { in makePrecompSource() 208 ObjFile *file, in makeUsePrecompSource() [all …]
|
| H A D | InputFiles.h | 129 class ObjFile : public InputFile { 131 explicit ObjFile(COFFLinkerContext &ctx, MemoryBufferRef m, bool lazy = false) 221 void enqueuePdbFile(StringRef path, ObjFile *fromFile); 319 StringRef path, ObjFile *fromFile);
|
| H A D | Symbols.cpp | 63 check(cast<ObjFile>(d->file)->getCOFFObj()->getSymbolName(d->sym)); in computeName() 101 size_t symSize = cast<ObjFile>(file)->getCOFFObj()->getSymbolTableEntrySize(); in getCOFFSymbol()
|
| /openbsd-src/gnu/llvm/lld/wasm/ |
| H A D | MarkLive.cpp | 44 void enqueueInitFunctions(const ObjFile *sym); 69 enqueueInitFunctions(cast<ObjFile>(file)); in enqueue() 78 void MarkLive::enqueueInitFunctions(const ObjFile *obj) { in enqueueInitFunctions() 101 for (const ObjFile *obj : symtab->objectFiles) in run() 155 for (const ObjFile *obj : symtab->objectFiles) { in markLive() 196 for (const ObjFile *file : symtab->objectFiles) { in isCallCtorsLive()
|
| H A D | InputElement.h | 26 InputElement(StringRef name, ObjFile *f) in InputElement() 38 ObjFile *file; 61 InputGlobal(const WasmGlobal &g, ObjFile *f) in InputGlobal() 78 InputTag(const WasmSignature &s, const WasmTag &t, ObjFile *f) in InputTag() 86 InputTable(const WasmTable &t, ObjFile *f) in InputTable()
|
| H A D | InputChunks.h | 35 class ObjFile; variable 85 ObjFile *file; 111 InputChunk(ObjFile *f, Kind k, StringRef name, uint32_t alignment = 0, 132 InputSegment(const WasmSegment &seg, ObjFile *f) in InputSegment() 171 MergeInputChunk(const WasmSegment &seg, ObjFile *f) in MergeInputChunk() 179 MergeInputChunk(const WasmSection &s, ObjFile *f) in MergeInputChunk() 252 InputFunction(const WasmSignature &s, const WasmFunction *func, ObjFile *f) in InputFunction() 329 InputSection(const WasmSection &s, ObjFile *f) in InputSection()
|
| H A D | InputFiles.cpp | 86 return make<ObjFile>(mb, archiveName); in createObjectFile() 103 uint32_t ObjFile::calcNewIndex(const WasmRelocation &reloc) const { in calcNewIndex() 116 int64_t ObjFile::calcNewAddend(const WasmRelocation &reloc) const { in calcNewAddend() 140 uint64_t ObjFile::calcNewValue(const WasmRelocation &reloc, uint64_t tombstone, in calcNewValue() 272 void ObjFile::addLegacyIndirectFunctionTableIfNeeded( in addLegacyIndirectFunctionTableIfNeeded() 393 void ObjFile::parse(bool ignoreComdats) { in parse() 542 bool ObjFile::isExcludedByComdat(const InputChunk *chunk) const { in isExcludedByComdat() 549 FunctionSymbol *ObjFile::getFunctionSymbol(uint32_t index) const { in getFunctionSymbol() 553 GlobalSymbol *ObjFile::getGlobalSymbol(uint32_t index) const { in getGlobalSymbol() 557 TagSymbol *ObjFile::getTagSymbol(uint32_t index) const { in getTagSymbol() [all …]
|
| H A D | Writer.cpp | 129 for (ObjFile *file : symtab->objectFiles) { in calculateCustomSections() 203 for (ObjFile *file : symtab->objectFiles) { in populateProducers() 493 for (ObjFile *file : symtab->objectFiles) { in populateTargetFeatures() 556 for (ObjFile *file : symtab->objectFiles) { in populateTargetFeatures() 731 for (ObjFile *file : symtab->objectFiles) { in populateSymtab() 747 for (ObjFile *file : symtab->objectFiles) { in calculateTypes() 838 for (ObjFile *file : symtab->objectFiles) { in scanRelocations() 857 for (ObjFile *file : symtab->objectFiles) { in assignIndexes() 866 for (ObjFile *file : symtab->objectFiles) { in assignIndexes() 872 for (ObjFile *file : symtab->objectFiles) { in assignIndexes() [all …]
|
| /openbsd-src/gnu/llvm/lld/ELF/ |
| H A D | InputFiles.cpp | 283 cast<ObjFile<ELFT>>(file)->parseLazy(); in doParseFile() 306 cast<ObjFile<ELFT>>(file)->parse(); in doParseFile() 322 static std::string getSrcMsgAux(ObjFile<ELFT> &file, const Symbol &sym, in getSrcMsgAux() 346 return getSrcMsgAux(cast<ObjFile<ELF32LE>>(*this), sym, sec, offset); in getSrcMsg() 348 return getSrcMsgAux(cast<ObjFile<ELF32BE>>(*this), sym, sec, offset); in getSrcMsg() 350 return getSrcMsgAux(cast<ObjFile<ELF64LE>>(*this), sym, sec, offset); in getSrcMsg() 352 return getSrcMsgAux(cast<ObjFile<ELF64BE>>(*this), sym, sec, offset); in getSrcMsg() 425 template <class ELFT> DWARFCache *ObjFile<ELFT>::getDwarf() { in getDwarf() 442 ObjFile<ELFT>::getVariableLoc(StringRef name) { in getVariableLoc() 449 std::optional<DILineInfo> ObjFile<ELFT>::getDILineInfo(InputSectionBase *s, in getDILineInfo() [all …]
|
| H A D | InputSection.h | 31 template <class ELFT> class ObjFile; variable 109 InputSectionBase(ObjFile<ELFT> &file, const typename ELFT::Shdr &header, 133 template <class ELFT> ObjFile<ELFT> *getFile() const { in getFile() 134 return cast_or_null<ObjFile<ELFT>>(file); in getFile() 274 MergeInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, 335 EhInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, 358 InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
|
| H A D | InputSection.cpp | 44 static ArrayRef<uint8_t> getSectionContents(ObjFile<ELFT> &file, in getSectionContents() 89 InputSectionBase::InputSectionBase(ObjFile<ELFT> &file, in InputSectionBase() 319 InputSection::InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, in InputSection() 363 const ObjFile<ELFT> *file = getFile<ELFT>(); in copyRelocations() 1144 EhInputSection::EhInputSection(ObjFile<ELFT> &f, in EhInputSection() 1269 MergeInputSection::MergeInputSection(ObjFile<ELFT> &f, in MergeInputSection() 1308 template InputSection::InputSection(ObjFile<ELF32LE> &, const ELF32LE::Shdr &, 1310 template InputSection::InputSection(ObjFile<ELF32BE> &, const ELF32BE::Shdr &, 1312 template InputSection::InputSection(ObjFile<ELF64LE> &, const ELF64LE::Shdr &, 1314 template InputSection::InputSection(ObjFile<ELF64BE> &, const ELF64BE::Shdr &, [all …]
|
| H A D | DWARF.cpp | 28 template <class ELFT> LLDDwarfObj<ELFT>::LLDDwarfObj(ObjFile<ELFT> *obj) { in LLDDwarfObj() 113 const ObjFile<ELFT> *file = sec.getFile<ELFT>(); in findAux()
|
| /openbsd-src/gnu/llvm/llvm/lib/Object/ |
| H A D | IRObjectFile.cpp | 99 Expected<std::unique_ptr<ObjectFile>> ObjFile = in findBitcodeInMemBuffer() local 101 if (!ObjFile) in findBitcodeInMemBuffer() 102 return ObjFile.takeError(); in findBitcodeInMemBuffer() 103 return findBitcodeInObject(*ObjFile->get()); in findBitcodeInMemBuffer()
|
| H A D | OffloadBinary.cpp | 280 Expected<std::unique_ptr<ObjectFile>> ObjFile = in extractOffloadBinaries() local 282 if (!ObjFile) in extractOffloadBinaries() 283 return ObjFile.takeError(); in extractOffloadBinaries() 284 return extractFromObject(*ObjFile->get(), Binaries); in extractOffloadBinaries()
|
| /openbsd-src/gnu/llvm/lld/MachO/ |
| H A D | LTO.h | 27 class ObjFile; variable 34 std::vector<ObjFile *> compile();
|
| H A D | Dwarf.h | 17 class ObjFile; variable 49 static std::unique_ptr<DwarfObject> create(ObjFile *);
|
| H A D | EhFrame.h | 57 EhReader(const ObjFile *file, ArrayRef<uint8_t> data, size_t dataOff) in EhReader() 72 const ObjFile *file;
|
| H A D | InputFiles.cpp | 117 if (!isa<ObjFile>(input) && !isa<DylibFile>(input)) in getPlatformInfos() 319 void ObjFile::parseSections(ArrayRef<SectionHeader> sectionHeaders) { in parseSections() 405 void ObjFile::splitEhFrames(ArrayRef<uint8_t> data, Section &ehFrameSection) { in splitEhFrames() 511 void ObjFile::parseRelocations(ArrayRef<SectionHeader> sectionHeaders, in parseRelocations() 739 macho::Symbol *ObjFile::parseNonSectionSymbol(const NList &sym, in parseNonSectionSymbol() 781 void ObjFile::parseSymbols(ArrayRef<typename LP::section> sectionHeaders, in parseSymbols() 947 ObjFile::ObjFile(MemoryBufferRef mb, uint32_t modTime, StringRef archiveName, in ObjFile() function in ObjFile 964 template <class LP> void ObjFile::parse() { in parse() 1038 template <class LP> void ObjFile::parseLazy() { in parseLazy() 1063 void ObjFile::parseDebugInfo() { in parseDebugInfo() [all …]
|
| H A D | Symbols.cpp | 108 ObjFile *Defined::getObjectFile() const { in getObjectFile() 109 return isec ? dyn_cast_or_null<ObjFile>(isec->getFile()) : nullptr; in getObjectFile()
|
| H A D | LTO.cpp | 198 std::vector<ObjFile *> BitcodeCompiler::compile() { in compile() 275 std::vector<ObjFile *> ret; in compile() 302 ret.push_back(make<ObjFile>( in compile()
|
| /openbsd-src/gnu/llvm/lld/ELF/Arch/ |
| H A D | AMDGPU.cpp | 47 return cast<ObjFile<ELF64LE>>(file)->getObj().getHeader().e_flags; in getEFlags() 112 uint8_t abiVersion = cast<ObjFile<ELF64LE>>(ctx.objectFiles[0]) in calcEFlags()
|