Lines Matching refs:BD
34 BinarySection::hash(const BinaryData &BD, in hash() argument
36 auto Itr = Cache.find(&BD); in hash()
40 Cache[&BD] = 0; in hash()
42 uint64_t Offset = BD.getAddress() - getAddress(); in hash()
43 const uint64_t EndOffset = BD.getEndAddress() - getAddress(); in hash()
49 hash_combine(hash_value(BD.getSize()), hash_value(BD.getSectionName())); in hash()
63 Cache[&BD] = Hash; in hash()
206 BinaryData *BD = BC.getBinaryDataContainingAddress(RelAddr); in reorderRelocations() local
207 BD = BD->getAtomicRoot(); in reorderRelocations()
208 assert(BD); in reorderRelocations()
210 if ((!BD->isMoved() && !Inplace) || BD->isJumpTable()) in reorderRelocations()
214 uint64_t RelOffset = RelAddr - BD->getAddress(); in reorderRelocations()
215 NewRel.Offset = BD->getOutputOffset() + RelOffset; in reorderRelocations()
236 for (BinaryData *BD : Order) { in reorderContents()
237 assert((BD->isMoved() || !Inplace) && !BD->isJumpTable()); in reorderContents()
238 assert(BD->isAtomic() && BD->isMoveable()); in reorderContents()
239 const uint64_t SrcOffset = BD->getAddress() - getAddress(); in reorderContents()
241 assert(SrcOffset == BD->getOffset()); in reorderContents()
242 while (OS.tell() < BD->getOutputOffset()) in reorderContents()
244 LLVM_DEBUG(dbgs() << "BOLT-DEBUG: " << BD->getName() << " @ " << OS.tell() in reorderContents()
246 OS.write(&Src[SrcOffset], BD->getOutputSize()); in reorderContents()