Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/llvm/lib/XRay/
H A DInstrumentationMap.cpp61 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()
98 dyn_cast<object::ELF32BEObjectFile>(ObjFile)) in loadObj()
108 }(ObjFile.getBinary()); in loadObj()
113 object::getRelocationResolver(*ObjFile.getBinary()); in loadObj()
[all …]
/llvm-project-15.0.7/lld/COFF/
H A DDebugTypes.h36 class ObjFile; variable
46 TpiSource(COFFLinkerContext &ctx, TpiKind k, ObjFile *f);
126 ObjFile *file;
169 TpiSource *makeTpiSource(COFFLinkerContext &ctx, ObjFile *f);
172 TpiSource *makeUseTypeServerSource(COFFLinkerContext &ctx, ObjFile *file,
174 TpiSource *makePrecompSource(COFFLinkerContext &ctx, ObjFile *file);
175 TpiSource *makeUsePrecompSource(COFFLinkerContext &ctx, ObjFile *file,
H A DInputFiles.cpp136 void ObjFile::parseLazy() { in parseLazy()
154 void ObjFile::parse() { in parse()
187 void ObjFile::initializeChunks() { in initializeChunks()
276 void ObjFile::includeResourceChunks() { in includeResourceChunks()
280 void ObjFile::readAssociativeDefinition( in readAssociativeDefinition()
342 void ObjFile::maybeAssociateSEHForMingw( in maybeAssociateSEHForMingw()
378 void ObjFile::initializeSymbols() { in initializeSymbols()
463 void ObjFile::handleComdatSelection( in handleComdatSelection()
685 MachineTypes ObjFile::getMachineType() { in getMachineType()
702 void ObjFile::initializeFlags() { in initializeFlags()
[all …]
H A DDebugTypes.cpp127 PrecompSource(COFFLinkerContext &ctx, ObjFile *f) : TpiSource(ctx, PCH, f) { in PrecompSource()
146 UsePrecompSource(COFFLinkerContext &ctx, ObjFile *f, PrecompRecord precomp) in UsePrecompSource()
158 PrecompSource *findPrecompSource(ObjFile *file, PrecompRecord &pr);
159 Expected<PrecompSource *> findPrecompMap(ObjFile *file, PrecompRecord &pr);
168 TpiSource::TpiSource(COFFLinkerContext &ctx, TpiKind k, ObjFile *f) in TpiSource()
179 TpiSource *lld::coff::makeTpiSource(COFFLinkerContext &ctx, ObjFile *file) { in makeTpiSource()
193 ObjFile *file, in makeUseTypeServerSource()
203 ObjFile *file, in makeUsePrecompSource()
282 static Optional<ArrayRef<uint8_t>> getDebugH(ObjFile *file) { in getDebugH()
472 PrecompSource *UsePrecompSource::findPrecompSource(ObjFile *file, in findPrecompSource()
[all …]
H A DSymbolTable.cpp44 cast<ObjFile>(file)->parseLazy(); in addFile()
47 if (auto *f = dyn_cast<ObjFile>(file)) { in addFile()
159 getSymbolLocations(ObjFile *file, uint32_t symIndex, size_t maxStrings) { in getSymbolLocations()
210 std::vector<std::string> getSymbolLocations(ObjFile *file, uint32_t symIndex) { in getSymbolLocations()
216 if (auto *o = dyn_cast<ObjFile>(file)) in getSymbolLocations()
424 for (ObjFile *file : ctx.objFileInstances) in reportProblemSymbols()
616 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc, in getSourceLocationObj()
637 if (auto *o = dyn_cast<ObjFile>(file)) in getSourceLocation()
659 if (d && isa<ObjFile>(d->getFile())) { in reportDuplicate()
806 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)
221 void enqueuePdbFile(StringRef path, ObjFile *fromFile);
319 StringRef path, ObjFile *fromFile);
/llvm-project-15.0.7/lld/wasm/
H A DMarkLive.cpp44 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 DInputElement.h25 InputElement(StringRef name, ObjFile *f) in InputElement()
37 ObjFile *file;
60 InputGlobal(const WasmGlobal &g, ObjFile *f) in InputGlobal()
77 InputTag(const WasmSignature &s, const WasmTag &t, ObjFile *f) in InputTag()
85 InputTable(const WasmTable &t, ObjFile *f) in InputTable()
H A DInputChunks.h34 class ObjFile; variable
84 ObjFile *file;
110 InputChunk(ObjFile *f, Kind k, StringRef name, uint32_t alignment = 0,
131 InputSegment(const WasmSegment &seg, ObjFile *f) in InputSegment()
170 MergeInputChunk(const WasmSegment &seg, ObjFile *f) in MergeInputChunk()
178 MergeInputChunk(const WasmSection &s, ObjFile *f) in MergeInputChunk()
250 InputFunction(const WasmSignature &s, const WasmFunction *func, ObjFile *f) in InputFunction()
327 InputSection(const WasmSection &s, ObjFile *f) in InputSection()
H A DInputFiles.cpp84 return make<ObjFile>(mb, archiveName); in createObjectFile()
101 uint32_t ObjFile::calcNewIndex(const WasmRelocation &reloc) const { in calcNewIndex()
114 int64_t ObjFile::calcNewAddend(const WasmRelocation &reloc) const { in calcNewAddend()
270 void ObjFile::addLegacyIndirectFunctionTableIfNeeded( in addLegacyIndirectFunctionTableIfNeeded()
391 void ObjFile::parse(bool ignoreComdats) { in parse()
551 GlobalSymbol *ObjFile::getGlobalSymbol(uint32_t index) const { in getGlobalSymbol()
555 TagSymbol *ObjFile::getTagSymbol(uint32_t index) const { in getTagSymbol()
559 TableSymbol *ObjFile::getTableSymbol(uint32_t index) const { in getTableSymbol()
563 SectionSymbol *ObjFile::getSectionSymbol(uint32_t index) const { in getSectionSymbol()
567 DataSymbol *ObjFile::getDataSymbol(uint32_t index) const { in getDataSymbol()
[all …]
/llvm-project-15.0.7/bolt/unittests/Core/
H A DBinaryContext.cpp38 ObjFile = cantFail(ObjectFile::createObjectFile(Source)); in prepareElf()
43 ObjFile.get(), true, DWARFContext::create(*ObjFile.get()))); in initializeBOLT()
48 std::unique_ptr<ObjectFile> ObjFile; member
H A DMCPlusBuilder.cpp48 ObjFile = cantFail(ObjectFile::createObjectFile(Source)); in prepareElf()
53 ObjFile.get(), true, DWARFContext::create(*ObjFile.get()))); in initializeBolt()
72 std::unique_ptr<ObjectFile> ObjFile; member
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Inputs/
H A Ddebug-subsections.yaml4 ObjFile: 'Foo.obj'
13 ObjFile: 'Bar.obj'
26 ObjFile: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
68 ObjFile: 'ObjFileSubsections'
/llvm-project-15.0.7/lld/ELF/
H A DInputFiles.cpp178 cast<ObjFile<ELFT>>(file)->parseLazy(); in doParseFile()
201 cast<ObjFile<ELFT>>(file)->parse(); in doParseFile()
278 ObjFile<ELFT>::getVariableLoc(StringRef name) { in getVariableLoc()
1205 ObjFile<ELFT> *obj = make<ObjFile<ELFT>>(mb, archiveName); in isNonCommonDef()
1718 f = make<ObjFile<ELF32LE>>(mb, archiveName); in createObjFile()
1721 f = make<ObjFile<ELF32BE>>(mb, archiveName); in createObjFile()
1724 f = make<ObjFile<ELF64LE>>(mb, archiveName); in createObjFile()
1779 template class elf::ObjFile<ELF32LE>; member in elf
1780 template class elf::ObjFile<ELF32BE>; member in elf
1781 template class elf::ObjFile<ELF64LE>; member in elf
[all …]
H A DInputSection.h30 template <class ELFT> class ObjFile; variable
108 InputSectionBase(ObjFile<ELFT> &file, const typename ELFT::Shdr &header,
132 template <class ELFT> ObjFile<ELFT> *getFile() const { in getFile()
133 return cast_or_null<ObjFile<ELFT>>(file); in getFile()
267 MergeInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
326 EhInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
349 InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
H A DInputSection.cpp45 static ArrayRef<uint8_t> getSectionContents(ObjFile<ELFT> &file, in getSectionContents()
90 InputSectionBase::InputSectionBase(ObjFile<ELFT> &file, in InputSectionBase()
350 const ObjFile<ELFT> *file = getFile<ELFT>(); in copyRelocations()
1253 EhInputSection::EhInputSection(ObjFile<ELFT> &f, in EhInputSection()
1387 MergeInputSection::MergeInputSection(ObjFile<ELFT> &f, in MergeInputSection()
1445 template MergeInputSection::MergeInputSection(ObjFile<ELF32LE> &,
1447 template MergeInputSection::MergeInputSection(ObjFile<ELF32BE> &,
1454 template EhInputSection::EhInputSection(ObjFile<ELF32LE> &,
1456 template EhInputSection::EhInputSection(ObjFile<ELF32BE> &,
1458 template EhInputSection::EhInputSection(ObjFile<ELF64LE> &,
[all …]
/llvm-project-15.0.7/llvm/lib/Object/
H A DIRObjectFile.cpp99 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()
/llvm-project-15.0.7/lld/MachO/
H A DLTO.h27 class ObjFile; variable
34 std::vector<ObjFile *> compile();
H A DLTO.cpp108 std::vector<ObjFile *> BitcodeCompiler::compile() { in compile()
158 std::vector<ObjFile *> ret; in compile()
173 ret.push_back(make<ObjFile>( in compile()
178 ret.push_back(make<ObjFile>(*file, 0, "")); in compile()
H A DDwarf.h18 class ObjFile; variable
46 static std::unique_ptr<DwarfObject> create(ObjFile *);
H A DEhFrame.h58 EhReader(const ObjFile *file, ArrayRef<uint8_t> data, size_t dataOff) in EhReader()
73 const ObjFile *file;
H A DInputFiles.cpp116 if (!isa<ObjFile>(input) && !isa<DylibFile>(input)) in getPlatformInfos()
475 void ObjFile::parseOptimizationHints(ArrayRef<uint8_t> data) { in parseOptimizationHints()
1044 ObjFile::ObjFile(MemoryBufferRef mb, uint32_t modTime, StringRef archiveName, in ObjFile() function in ObjFile
1061 template <class LP> void ObjFile::parse() { in parse()
1137 template <class LP> void ObjFile::parseLazy() { in parseLazy()
1163 void ObjFile::parseDebugInfo() { in parseDebugInfo()
1467 void ObjFile::registerEhFrames(Section &ehFrameSection) { in registerEhFrames()
1601 std::string ObjFile::sourceFile() const { in sourceFile()
1611 lld::DWARFCache *ObjFile::getDwarf() { in getDwarf()
2315 auto &f = cast<ObjFile>(file); in extract()
[all …]
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/
H A Dpdbdump-debug-subsections.test6 YAML-NEXT: ObjFile: Foo.obj
15 YAML-NEXT: ObjFile: Bar.obj
28 YAML-NEXT: ObjFile: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
/llvm-project-15.0.7/lld/test/COFF/
H A Dpdb-source-lines.test37 CHECK-NEXT: ObjFile: {{.*}}pdb_lines_1.obj
98 CHECK-NEXT: ObjFile: {{.*}}pdb_lines_2.obj
125 CHECK-NEXT: ObjFile: ''
H A Dpdb-relative-source-lines.test50 CHECK-NEXT: ObjFile: 'c:\src\pdb_lines_1_relative.obj'
62 CHECK-NEXT: ObjFile: 'c:\src\pdb_lines_2_relative.obj'
98 POSIX-NEXT: ObjFile: '/usr/src/pdb_lines_1_relative.obj'
110 POSIX-NEXT: ObjFile: '/usr/src/pdb_lines_2_relative.obj'

1234