Home
last modified time | relevance | path

Searched refs:ObjFile (Results 1 – 25 of 74) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/XRay/
H A DInstrumentationMap.cpp54 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::loongarch64 || in loadObj()
64 ObjFile.getBinary()->getArch() == Triple::ppc64le || in loadObj()
65 ObjFile.getBinary()->getArch() == Triple::arm || in loadObj()
66 ObjFile.getBinary()->getArch() == Triple::aarch64)) in loadObj()
73 const auto &Sections = ObjFile.getBinary()->sections(); in loadObj()
94 if (ObjFile.getBinary()->isELF()) { in loadObj()
95 uint32_t RelativeRelocation = [](object::ObjectFile *ObjFile) { in loadObj() argument
[all …]
/freebsd/contrib/llvm-project/lld/COFF/
H A DDebugTypes.h33 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 DInputFiles.cpp137 void ObjFile::parseLazy() { in parseLazy()
161 void ObjFile::initializeECThunks() { in initializeECThunks()
187 void ObjFile::parse() { in parse()
206 const coff_section *ObjFile::getSection(uint32_t i) { in getSection()
221 void ObjFile::initializeChunks() { in initializeChunks()
233 SectionChunk *ObjFile::readSection(uint32_t sectionNumber, in readSection()
316 void ObjFile::includeResourceChunks() { in includeResourceChunks()
320 void ObjFile::readAssociativeDefinition( in readAssociativeDefinition()
325 void ObjFile::readAssociativeDefinition(COFFSymbolRef sym, in readAssociativeDefinition()
365 void ObjFile::recordPrevailingSymbolForMingw( in recordPrevailingSymbolForMingw()
[all …]
H A DDebugTypes.cpp109 UseTypeServerSource(COFFLinkerContext &ctx, ObjFile *f, TypeServer2Record ts) in UseTypeServerSource()
129 PrecompSource(COFFLinkerContext &ctx, ObjFile *f) : TpiSource(ctx, PCH, f) { in PrecompSource()
153 UsePrecompSource(COFFLinkerContext &ctx, ObjFile *f, PrecompRecord precomp) in UsePrecompSource()
165 PrecompSource *findPrecompSource(ObjFile *file, PrecompRecord &pr);
166 Expected<PrecompSource *> findPrecompMap(ObjFile *file, PrecompRecord &pr);
175 TpiSource::TpiSource(COFFLinkerContext &ctx, TpiKind k, ObjFile *f) in TpiSource()
186 TpiSource *lld::coff::makeTpiSource(COFFLinkerContext &ctx, ObjFile *file) { in makeTpiSource()
200 ObjFile *file, in makeUseTypeServerSource()
205 TpiSource *lld::coff::makePrecompSource(COFFLinkerContext &ctx, ObjFile *file) { in makePrecompSource()
210 ObjFile *file, in makeUsePrecompSource()
[all …]
H A DSymbolTable.cpp58 cast<ObjFile>(file)->parseLazy(); in addFile()
61 if (auto *f = dyn_cast<ObjFile>(file)) { in addFile()
177 getSymbolLocations(ObjFile *file, uint32_t symIndex, size_t maxStrings) { in getSymbolLocations()
228 std::vector<std::string> getSymbolLocations(ObjFile *file, uint32_t symIndex) { in getSymbolLocations()
234 if (auto *o = dyn_cast<ObjFile>(file)) in getSymbolLocations()
442 for (ObjFile *file : ctx.objFileInstances) in reportProblemSymbols()
651 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc, in getSourceLocationObj()
672 if (auto *o = dyn_cast<ObjFile>(file)) in getSourceLocation()
694 if (d && isa<ObjFile>(d->getFile())) { in reportDuplicate()
825 for (ObjFile *file : ctx.objFileInstances) { in getChunks()
[all …]
H A DInputFiles.h129 class ObjFile : public InputFile {
131 explicit ObjFile(COFFLinkerContext &ctx, MemoryBufferRef m, bool lazy = false)
224 void enqueuePdbFile(StringRef path, ObjFile *fromFile);
325 StringRef path, ObjFile *fromFile);
H A DChunks.h38 class ObjFile; variable
232 ObjFile *file;
234 symbol_iterator(ObjFile *file, const coff_relocation *i) in symbol_iterator()
243 SectionChunk(ObjFile *file, const coff_section *header, Kind k = SectionKind);
360 ObjFile *file;
410 SectionChunkEC(ObjFile *file, const coff_section *header) in SectionChunkEC()
H A DSymbols.cpp63 check(cast<ObjFile>(d->file)->getCOFFObj()->getSymbolName(d->sym)); in computeName()
101 size_t symSize = cast<ObjFile>(file)->getCOFFObj()->getSymbolTableEntrySize(); in getCOFFSymbol()
/freebsd/contrib/llvm-project/lld/ELF/
H A DInputFiles.cpp47 extern template void ObjFile<ELF32LE>::importCmseSymbols();
48 extern template void ObjFile<ELF32BE>::importCmseSymbols();
49 extern template void ObjFile<ELF64LE>::importCmseSymbols();
50 extern template void ObjFile<ELF64BE>::importCmseSymbols();
312 cast<ObjFile<ELFT>>(file)->parseLazy(); in doParseFile()
322 cast<ObjFile<ELFT>>(file)->parse(); in doParseFile()
339 extern template void ObjFile<ELF32LE>::importCmseSymbols();
340 extern template void ObjFile<ELF32BE>::importCmseSymbols();
341 extern template void ObjFile<ELF64LE>::importCmseSymbols();
342 extern template void ObjFile<ELF64BE>::importCmseSymbols();
[all …]
H A DInputSection.cpp45 static ArrayRef<uint8_t> getSectionContents(ObjFile<ELFT> &file, in getSectionContents()
90 InputSectionBase::InputSectionBase(ObjFile<ELFT> &file, in InputSectionBase()
141 auto *f = cast<ObjFile<ELFT>>(file); in relsOrRelas()
366 InputSection::InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, in InputSection()
412 const ObjFile<ELFT> &file; in copyRelocations()
443 const ObjFile<ELFT> *file = getFile<ELFT>(); in copyRelocations()
1274 EhInputSection::EhInputSection(ObjFile<ELFT> &f, in EhInputSection()
1399 MergeInputSection::MergeInputSection(ObjFile<ELFT> &f, in MergeInputSection()
1438 template InputSection::InputSection(ObjFile<ELF32LE> &, const ELF32LE::Shdr &,
1440 template InputSection::InputSection(ObjFile<ELF32BE> &, const ELF32BE::Shdr &,
[all …]
H A DInputSection.h33 template <class ELFT> class ObjFile; variable
143 InputSectionBase(ObjFile<ELFT> &file, const typename ELFT::Shdr &header,
168 template <class ELFT> ObjFile<ELFT> *getFile() const { in getFile()
169 return cast<ObjFile<ELFT>>(file); in getFile()
318 MergeInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
379 EhInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
402 InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
H A DDWARF.cpp28 template <class ELFT> LLDDwarfObj<ELFT>::LLDDwarfObj(ObjFile<ELFT> *obj) { in LLDDwarfObj()
114 const ObjFile<ELFT> *file = sec.getFile<ELFT>(); in findAux()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DIRObjectFile.cpp98 Expected<std::unique_ptr<ObjectFile>> ObjFile = in findBitcodeInMemBuffer()
100 if (!ObjFile) in findBitcodeInMemBuffer()
101 return ObjFile.takeError(); in findBitcodeInMemBuffer()
102 return findBitcodeInObject(*ObjFile->get()); in findBitcodeInMemBuffer()
99 Expected<std::unique_ptr<ObjectFile>> ObjFile = findBitcodeInMemBuffer() local
H A DOffloadBinary.cpp282 Expected<std::unique_ptr<ObjectFile>> ObjFile = in extractOffloadBinaries() local
284 if (!ObjFile) in extractOffloadBinaries()
285 return ObjFile.takeError(); in extractOffloadBinaries()
286 return extractFromObject(*ObjFile->get(), Binaries); in extractOffloadBinaries()
/freebsd/contrib/llvm-project/lld/MachO/
H A DLTO.h27 class ObjFile; variable
34 std::vector<ObjFile *> compile();
H A DDwarf.h17 class ObjFile; variable
49 static std::unique_ptr<DwarfObject> create(ObjFile *);
H A DEhFrame.h57 EhReader(const ObjFile *file, ArrayRef<uint8_t> data, size_t dataOff) in EhReader()
72 const ObjFile *file;
H A DInputFiles.cpp117 if (!isa<ObjFile>(input) && !isa<DylibFile>(input)) in getPlatformInfos()
341 void ObjFile::parseSections(ArrayRef<SectionHeader> sectionHeaders) { in parseSections()
427 void ObjFile::splitEhFrames(ArrayRef<uint8_t> data, Section &ehFrameSection) { in splitEhFrames()
533 void ObjFile::parseRelocations(ArrayRef<SectionHeader> sectionHeaders, in parseRelocations()
757 macho::Symbol *ObjFile::parseNonSectionSymbol(const NList &sym, in parseNonSectionSymbol()
799 void ObjFile::parseSymbols(ArrayRef<typename LP::section> sectionHeaders, in parseSymbols()
954 void ObjFile::parseLinkerOptions(SmallVectorImpl<StringRef> &LCLinkerOptions) { in parseLinkerOptions()
966 ObjFile::ObjFile(MemoryBufferRef mb, uint32_t modTime, StringRef archiveName, in ObjFile() function in ObjFile
986 template <class LP> void ObjFile::parse() { in parse()
1049 template <class LP> void ObjFile::parseLazy() { in parseLazy()
[all …]
H A DSymbols.cpp108 ObjFile *Defined::getObjectFile() const { in getObjectFile()
109 return originalIsec ? dyn_cast_or_null<ObjFile>(originalIsec->getFile()) in getObjectFile()
H A DLTO.cpp147 // load the ObjFile emitted by LTO compilation. in add()
191 std::vector<ObjFile *> BitcodeCompiler::compile() { in thinLTOCreateEmptyIndexFiles()
269 std::vector<ObjFile *> ret; in compile()
296 ret.push_back(make<ObjFile>( in compile()
H A DObjC.cpp267 auto objFile = dyn_cast_or_null<ObjFile>(inputFile); in parseMethods()
426 ObjFile *objFileForMergeData = nullptr;
485 ObjFile *objFile);
488 const std::string &baseClassName, ObjFile *objFile);
489 Defined *emitCategoryName(const std::string &name, ObjFile *objFile);
805 dyn_cast_or_null<ObjFile>(catInfo.catBodyIsec->getFile()); in parseCatInfoToExtInfo()
968 ObjFile *objFile) { in emitCatListEntrySec()
1003 ObjFile *objFile) { in emitCategoryBody()
1042 ObjFile *objFile) { in emitCategoryName()
1241 ObjFile *objFile = dyn_cast<ObjFile>(nonErasedCatBody->getFile()); in generateCatListForNonErasedCategories()
H A DTarget.h32 class ObjFile; variable
111 virtual void applyOptimizationHints(uint8_t *, const ObjFile &) const {}; in applyOptimizationHints() argument
H A DInputFiles.h89 friend class ObjFile; variable
133 // True if this is a lazy ObjFile or BitcodeFile.
160 class ObjFile final : public InputFile {
162 ObjFile(MemoryBufferRef mb, uint32_t modTime, StringRef archiveName,
H A DDwarf.cpp20 std::unique_ptr<DwarfObject> DwarfObject::create(ObjFile *obj) { in create()
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DAMDGPU.cpp49 return cast<ObjFile<ELF64LE>>(file)->getObj().getHeader().e_flags; in getEFlags()
132 uint8_t abiVersion = cast<ObjFile<ELF64LE>>(ctx.objectFiles[0]) in calcEFlags()

123