Lines Matching refs:off

45 uint64_t InputSection::getVA(uint64_t off) const {  in getVA()
46 return parent->addr + getOffset(off); in getVA()
60 const Defined *InputSection::getContainingSymbol(uint64_t off) const { in getContainingSymbol()
62 symbols, off, [](uint64_t a, const Defined *b) { return a < b->value; }); in getContainingSymbol()
68 std::string InputSection::getLocation(uint64_t off) const { in getLocation()
71 if (auto *sym = getContainingSymbol(off)) in getLocation()
73 Twine::utohexstr(off - sym->value) + ")") in getLocation()
79 off += subsec.offset; in getLocation()
85 Twine::utohexstr(off) + ")") in getLocation()
89 std::string InputSection::getSourceLocation(uint64_t off) const { in getSourceLocation()
100 off += subsec.offset; in getSourceLocation()
115 section.addr + off, object::SectionedAddress::UndefSection)) in getSourceLocation()
119 if (const Defined *sym = getContainingSymbol(off)) { in getSourceLocation()
138 const Reloc *InputSection::getRelocAt(uint32_t off) const { in getRelocAt()
140 relocs, [=](const macho::Reloc &r) { return r.offset == off; }); in getRelocAt()
243 size_t off = 0; in splitIntoPieces() local
248 fatal(getLocation(off) + ": string is not null terminated"); in splitIntoPieces()
250 pieces.emplace_back(off, hash); in splitIntoPieces()
253 off += size; in splitIntoPieces()
257 StringPiece &CStringInputSection::getStringPiece(uint64_t off) { in getStringPiece() argument
258 if (off >= data.size()) in getStringPiece()
262 partition_point(pieces, [=](StringPiece p) { return p.inSecOff <= off; }); in getStringPiece()
266 const StringPiece &CStringInputSection::getStringPiece(uint64_t off) const { in getStringPiece()
267 return const_cast<CStringInputSection *>(this)->getStringPiece(off); in getStringPiece()
270 size_t CStringInputSection::getStringPieceIndex(uint64_t off) const { in getStringPieceIndex()
271 if (off >= data.size()) in getStringPieceIndex()
275 partition_point(pieces, [=](StringPiece p) { return p.inSecOff <= off; }); in getStringPieceIndex()
279 uint64_t CStringInputSection::getOffset(uint64_t off) const { in getOffset()
280 const StringPiece &piece = getStringPiece(off); in getOffset()
281 uint64_t addend = off - piece.inSecOff; in getOffset()
306 uint64_t WordLiteralInputSection::getOffset(uint64_t off) const { in getOffset()
311 return osec->getLiteral4Offset(buf + (off & ~3LLU)) | (off & 3); in getOffset()
313 return osec->getLiteral8Offset(buf + (off & ~7LLU)) | (off & 7); in getOffset()
315 return osec->getLiteral16Offset(buf + (off & ~15LLU)) | (off & 15); in getOffset()