Lines Matching refs:PatchOffset
17 DebugDieRefPatch::DebugDieRefPatch(uint64_t PatchOffset, CompileUnit *SrcCU, in DebugDieRefPatch() argument
19 : SectionPatch({PatchOffset}), in DebugDieRefPatch()
24 DebugULEB128DieRefPatch::DebugULEB128DieRefPatch(uint64_t PatchOffset, in DebugULEB128DieRefPatch() argument
28 : SectionPatch({PatchOffset}), in DebugULEB128DieRefPatch()
32 DebugDieTypeRefPatch::DebugDieTypeRefPatch(uint64_t PatchOffset, in DebugDieTypeRefPatch() argument
34 : SectionPatch({PatchOffset}), RefTypeName(RefTypeName) {} in DebugDieTypeRefPatch()
36 DebugType2TypeDieRefPatch::DebugType2TypeDieRefPatch(uint64_t PatchOffset, in DebugType2TypeDieRefPatch() argument
40 : SectionPatch({PatchOffset}), Die(Die), TypeName(TypeName), in DebugType2TypeDieRefPatch()
43 DebugTypeStrPatch::DebugTypeStrPatch(uint64_t PatchOffset, DIE *Die, in DebugTypeStrPatch() argument
45 : SectionPatch({PatchOffset}), Die(Die), TypeName(TypeName), in DebugTypeStrPatch()
48 DebugTypeLineStrPatch::DebugTypeLineStrPatch(uint64_t PatchOffset, DIE *Die, in DebugTypeLineStrPatch() argument
51 : SectionPatch({PatchOffset}), Die(Die), TypeName(TypeName), in DebugTypeLineStrPatch()
170 void SectionDescriptor::apply(uint64_t PatchOffset, dwarf::Form AttrForm, in apply() argument
175 applyIntVal(PatchOffset, Val, Format.getDwarfOffsetByteSize()); in apply()
179 applyIntVal(PatchOffset, Val, Format.getRefAddrByteSize()); in apply()
182 applyIntVal(PatchOffset, Val, 1); in apply()
185 applyIntVal(PatchOffset, Val, 2); in apply()
188 applyIntVal(PatchOffset, Val, 4); in apply()
191 applyIntVal(PatchOffset, Val, 8); in apply()
195 applyIntVal(PatchOffset, Val, 1); in apply()
198 applyIntVal(PatchOffset, Val, 2); in apply()
201 applyIntVal(PatchOffset, Val, 4); in apply()
204 applyIntVal(PatchOffset, Val, 8); in apply()
207 applyULEB128(PatchOffset, Val); in apply()
210 applySLEB128(PatchOffset, Val); in apply()
213 applyIntVal(PatchOffset, Val, Format.getDwarfOffsetByteSize()); in apply()
216 applyIntVal(PatchOffset, Val, 1); in apply()
225 uint64_t SectionDescriptor::getIntVal(uint64_t PatchOffset, unsigned Size) { in getIntVal() argument
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()
249 void SectionDescriptor::applyIntVal(uint64_t PatchOffset, uint64_t Val, in applyIntVal() argument
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()
271 const_cast<char *>(getContents().data() + PatchOffset), in applyIntVal()
279 void SectionDescriptor::applyULEB128(uint64_t PatchOffset, uint64_t Val) { in applyULEB128() argument
280 assert(PatchOffset < getContents().size()); in applyULEB128()
286 memcpy(const_cast<char *>(getContents().data() + PatchOffset), ULEB, in applyULEB128()
291 void SectionDescriptor::applySLEB128(uint64_t PatchOffset, uint64_t Val) { in applySLEB128() argument
292 assert(PatchOffset < getContents().size()); in applySLEB128()
298 memcpy(const_cast<char *>(getContents().data() + PatchOffset), SLEB, in applySLEB128()
312 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_strp, Entry->Offset); in applyPatches()
329 Patch.PatchOffset += in applyPatches()
332 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_strp, Entry->Offset); in applyPatches()
340 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_line_strp, Entry->Offset); in applyPatches()
357 Patch.PatchOffset += in applyPatches()
360 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_line_strp, Entry->Offset); in applyPatches()
372 Section.getIntVal(Patch.PatchOffset, Format.getDwarfOffsetByteSize()); in applyPatches()
375 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_sec_offset, FinalValue); in applyPatches()
388 Section.getIntVal(Patch.PatchOffset, Format.getDwarfOffsetByteSize()); in applyPatches()
391 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_sec_offset, FinalValue); in applyPatches()
409 Section.apply(Patch.PatchOffset, FinalForm, FinalOffset); in applyPatches()
415 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_udata, in applyPatches()
429 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_ref_addr, in applyPatches()
445 Patch.PatchOffset += Patch.Die->getOffset() + in applyPatches()
455 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_ref4, in applyPatches()
465 Section.getIntVal(Patch.PatchOffset, Format.getDwarfOffsetByteSize()); in applyPatches()
467 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_sec_offset, FinalValue); in applyPatches()