Home
last modified time | relevance | path

Searched refs:getContents (Results 1 – 25 of 78) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DOutputSections.cpp99 Expected<StringRef> Data = Sect.getContents(); in setSizesForSectionCreatedByAsmPrinter()
226 assert(PatchOffset < getContents().size()); in getIntVal()
230 (getContents().data() + PatchOffset)); in getIntVal()
233 return support::endian::read16(getContents().data() + PatchOffset, in getIntVal()
237 return support::endian::read32(getContents().data() + PatchOffset, in getIntVal()
241 return support::endian::read64(getContents().data() + PatchOffset, in getIntVal()
251 assert(PatchOffset < getContents().size()); in applyIntVal()
256 const_cast<char *>(getContents().data() + PatchOffset), in applyIntVal()
261 const_cast<char *>(getContents().data() + PatchOffset), in applyIntVal()
266 const_cast<char *>(getContents().data() + PatchOffset), in applyIntVal()
[all …]
H A DOutputSections.h226 StringRef getContents() override { in getContents() function
416 Section.second->getKind())] += Section.second->getContents().size(); in assignSectionsOffsetAndAccumulateSize()
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/
H A DTestingSupport.cpp105 if (Expected<StringRef> E = CoverageMapping.getContents()) in convertForTestingMain()
111 if (Expected<StringRef> E = CoverageRecords.getContents()) in convertForTestingMain()
117 if (Expected<StringRef> E = ProfileNames.getContents()) in convertForTestingMain()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCAssembler.cpp206 return cast<MCEncodedFragment>(F).getContents().size(); in computeFragmentSize()
362 if (DF->getContents().empty()) in layoutBundle()
550 OS << StringRef(EF.getContents().data(), EF.getContents().size()); in writeFragment()
719 for (char C : DF.getContents()) in writeSectionData()
823 auto Contents = F->getContents(); in layout()
896 const unsigned OldSize = static_cast<unsigned>(LF.getContents().size()); in relaxLEB()
1001 auto OldSize = DF.getContents().size(); in relaxDwarfLineAddr()
1032 auto OldSize = DF.getContents().size(); in relaxDwarfCallFrameFragment()
1041 unsigned OldSize = F.getContents().size(); in relaxCVInlineLineTable()
1043 return OldSize != F.getContents().size(); in relaxCVInlineLineTable()
[all …]
H A DMCWinCOFFStreamer.cpp283 MCFixup Fixup = MCFixup::create(DF->getContents().size(), SRE, FK_SecRel_2); in emitCOFFSectionIndex()
299 MCFixup Fixup = MCFixup::create(DF->getContents().size(), MCE, FK_SecRel_4); in emitCOFFSecRel32()
318 MCFixup Fixup = MCFixup::create(DF->getContents().size(), MCE, FK_Data_4); in emitCOFFImgRel32()
332 MCFixup Fixup = MCFixup::create(DF->getContents().size(), MCE, FK_Data_4); in emitCOFFSecNumber()
346 MCFixup Fixup = MCFixup::create(DF->getContents().size(), MCE, FK_Data_4); in emitCOFFSecOffset()
H A DMCFragment.cpp92 auto Contents = F->getContents(); in dump()
120 OS << " Size:" << F->getContents().size() << ' '; in dump()
H A DMCExpr.cpp357 if (&*F != FB || SBOffset != DF->getContents().size()) in attemptToFoldSymbolOffsetDifference()
359 if (&*F != FA || SAOffset == DF->getContents().size()) in attemptToFoldSymbolOffsetDifference()
378 Displacement += DF->getContents().size(); in attemptToFoldSymbolOffsetDifference()
384 Displacement += RF->getContents().size(); in attemptToFoldSymbolOffsetDifference()
H A DMCXCOFFStreamer.cpp100 MCFixup Fixup = MCFixup::create(DF->getContents().size(), SRE, Kind); in emitXCOFFRefDirective()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp69 Sec.Header.VirtualSize = NeedVA ? Sec.getContents().size() : 0u; in addSection()
74 : Sec.getContents().size(); in addSection()
139 ArrayRef<uint8_t> Contents = Section.getContents(); in dumpSection()
294 size_t ContentSize = It->getContents().size(); in handleArgs()
/freebsd/contrib/llvm-project/lld/COFF/
H A DICF.cpp176 a->checksum == b->checksum && a->getContents() == b->getContents() && in equalsConstant()
281 sc->eqClass[0] = xxh3_64bits(sc->getContents()); in run()
H A DPDB.cpp584 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in analyzeSymbolSubsection()
649 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in writeAllModuleSymbolRecords()
722 ArrayRef<uint8_t> contents = secChunk->getContents(); in createSectionContrib()
752 ArrayRef<uint8_t> contents = debugChunk->getContents(); in handleDebugS()
826 ptrdiff_t vaBegin = subsec.data() - sc->getContents().data(); in advanceRelocIndex()
857 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), subsec, in commit()
951 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), in finish()
1781 SectionChunk::consumeDebugMagic(dbgC->getContents(), ".debug$S"); in findLineTable()
1803 size_t offsetInDbgC = bytes.data() - dbgC->getContents().data(); in findLineTable()
H A DInputFiles.cpp314 if (chunk->getContents().size() % sizeof(ECMapEntry)) { in initializeECThunks()
316 << chunk->getContents().size(); in initializeECThunks()
321 chunk->getContents().data() + chunk->getContents().size(); in initializeECThunks()
322 for (const uint8_t *iter = chunk->getContents().data(); iter != end; in initializeECThunks()
785 if (leaderChunk->getContents() != newChunk.getContents()) in handleComdatSelection()
H A DChunks.cpp407 ArrayRef<uint8_t> a = getContents(); in writeTo()
730 ArrayRef<uint8_t> SectionChunk::getContents() const { in getContents() function in lld::coff::SectionChunk
738 return consumeDebugMagic(getContents(), getSectionName()); in consumeDebugMagic()
1056 builder.add(toStringRef(c->getContents())); in finalizeContents()
1065 size_t off = builder.getOffset(toStringRef(c->getContents())); in assignSubsectionRVAs()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86AsmBackend.cpp413 return DF->getContents().size() && in isRightAfterData()
415 DF->getContents().size() != PrevInstPosition.second); in isRightAfterData()
426 return DF->getContents().size(); in getSizeForInstFragment()
801 const unsigned OldSize = RF.getContents().size(); in padInstructionViaPrefix()
830 Code.append(RF.getContents().begin(), RF.getContents().end()); in padInstructionViaPrefix()
857 const unsigned OldSize = RF.getContents().size(); in padInstructionViaRelaxation()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DObjectFilePCHContainerReader.cpp36 if (Expected<StringRef> E = Section.getContents()) in ExtractPCH()
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Parallel/
H A DDWARFLinker.h100 virtual StringRef getContents() = 0;
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DObjDumper.cpp172 unwrapOrError(Obj.getFileName(), Section.getContents()); in printSectionsAsString()
190 unwrapOrError(Obj.getFileName(), Section.getContents()); in printSectionsAsHex()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchAsmBackend.cpp298 size_t OldSize = DF.getContents().size(); in relaxDwarfLineAddr()
362 size_t OldSize = DF.getContents().size(); in relaxDwarfCFA()
376 WasRelaxed = OldSize != DF.getContents().size(); in relaxDwarfCFA()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsTargetStreamer.cpp1037 DF->addFixup(MCFixup::create(DF->getContents().size(), Value, in emitGPRel32Value()
1044 DF->addFixup(MCFixup::create(DF->getContents().size(), Value, in emitGPRel64Value()
1051 DF->addFixup(MCFixup::create(DF->getContents().size(), Value, in emitDTPRel32Value()
1058 DF->addFixup(MCFixup::create(DF->getContents().size(), Value, in emitDTPRel64Value()
1065 DF->addFixup(MCFixup::create(DF->getContents().size(), Value, in emitTPRel32Value()
1072 DF->addFixup(MCFixup::create(DF->getContents().size(), Value, in emitTPRel64Value()
/freebsd/contrib/llvm-project/llvm/lib/Remarks/
H A DRemarkLinker.cpp51 if (Expected<StringRef> Contents = Section.getContents()) in getRemarksSectionContents()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DObjectFileTransformer.cpp43 Expected<StringRef> E = Sect.getContents(); in getUUID()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.cpp311 size_t OldSize = DF.getContents().size(); in relaxDwarfLineAddr()
374 size_t OldSize = DF.getContents().size(); in relaxDwarfCFA()
388 WasRelaxed = OldSize != DF.getContents().size(); in relaxDwarfCFA()
671 if (DF->getContents().size() == Offset) { in getPCRelHiFixup()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.h336 Stat = llvm::vfs::Status::copyWithNewSize(Stat, getContents().size()); in getStatus()
350 StringRef getContents() const { return Entry.getOriginalContents(); } in getContents() function
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DPrecompiledPreamble.h106 llvm::StringRef getContents() const { in getContents() function
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DIRObjectFile.cpp76 Expected<StringRef> Contents = Sec.getContents(); in findBitcodeInObject()

1234