Lines Matching defs:COFF

224 Decoder::getSectionContaining(const COFFObjectFile &COFF, uint64_t VA) {
225 for (const auto &Section : COFF.sections()) {
235 ErrorOr<object::SymbolRef> Decoder::getSymbol(const COFFObjectFile &COFF,
237 for (const auto &Symbol : COFF.symbols()) {
264 SymbolRef Decoder::getPreferredSymbol(const COFFObjectFile &COFF, SymbolRef Sym,
268 COFFSymbolRef CoffSym = COFF.getCOFFSymbol(Sym);
269 if (CoffSym.getStorageClass() != COFF::IMAGE_SYM_CLASS_LABEL &&
272 for (const auto &S : COFF.symbols()) {
273 COFFSymbolRef CS = COFF.getCOFFSymbol(S);
276 CS.getStorageClass() != COFF::IMAGE_SYM_CLASS_LABEL &&
292 const COFFObjectFile &COFF, const SectionRef &Section,
297 getRelocatedSymbol(COFF, Section, OffsetInSection);
315 SymOrErr = getPreferredSymbol(COFF, *SymOrErr, SymbolOffset);
321 SymbolAddress = COFF.getImageBase() + ImmediateOffset;
323 SymOrErr = getSymbol(COFF, SymbolAddress, FunctionOnly);
1028 bool Decoder::dumpXDataRecord(const COFFObjectFile &COFF,
1032 if (COFF.getSectionContents(COFF.getCOFFSection(Section), Contents))
1113 COFF, Section, Offset + HandlerOffset * sizeof(uint32_t),
1139 bool Decoder::dumpUnpackedEntry(const COFFObjectFile &COFF,
1147 COFF, Section, Offset, RF.BeginAddress, FunctionAddress, FunctionOffset,
1152 COFF, Section, Offset + 4, RF.ExceptionInformationRVA(), XDataAddress,
1195 return dumpXDataRecord(COFF, *SI, FunctionAddress, XDataAddress);
1199 ErrorOr<SectionRef> Section = getSectionContaining(COFF, XDataAddress);
1203 return dumpXDataRecord(COFF, *Section, FunctionAddress, XDataAddress);
1207 bool Decoder::dumpPackedEntry(const object::COFFObjectFile &COFF,
1216 COFF, Section, Offset, RF.BeginAddress, FunctionAddress, FunctionOffset,
1305 bool Decoder::dumpPackedARM64Entry(const object::COFFObjectFile &COFF,
1315 COFF, Section, Offset, RF.BeginAddress, FunctionAddress, FunctionOffset,
1438 bool Decoder::dumpProcedureDataEntry(const COFFObjectFile &COFF,
1448 return dumpUnpackedEntry(COFF, Section, Offset, Index, Entry);
1451 return dumpPackedARM64Entry(COFF, Section, Offset, Index, EntryARM64);
1453 return dumpPackedEntry(COFF, Section, Offset, Index, Entry);
1456 void Decoder::dumpProcedureData(const COFFObjectFile &COFF,
1459 if (COFF.getSectionContents(COFF.getCOFFSection(Section), Contents))
1468 if (!dumpProcedureDataEntry(COFF, Section, EI, Contents))
1472 Error Decoder::dumpProcedureData(const COFFObjectFile &COFF) {
1473 for (const auto &Section : COFF.sections()) {
1475 COFF.getSectionName(COFF.getCOFFSection(Section));
1480 dumpProcedureData(COFF, Section);