Lines Matching defs:COFF

212 Decoder::getSectionContaining(const COFFObjectFile &COFF, uint64_t VA) {
213 for (const auto &Section : COFF.sections()) {
223 ErrorOr<object::SymbolRef> Decoder::getSymbol(const COFFObjectFile &COFF,
225 for (const auto &Symbol : COFF.symbols()) {
810 bool Decoder::dumpXDataRecord(const COFFObjectFile &COFF,
814 if (COFF.getSectionContents(COFF.getCOFFSection(Section), Contents))
887 const uint64_t Address = COFF.getImageBase() + XData.ExceptionHandlerRVA();
894 COFF, Section, Offset + HandlerOffset * sizeof(uint32_t));
896 Symbol = getSymbol(COFF, Address, /*FunctionOnly=*/true);
921 bool Decoder::dumpUnpackedEntry(const COFFObjectFile &COFF,
927 ErrorOr<SymbolRef> Function = getRelocatedSymbol(COFF, Section, Offset);
929 Function = getSymbol(COFF, COFF.getImageBase() + RF.BeginAddress,
932 ErrorOr<SymbolRef> XDataRecord = getRelocatedSymbol(COFF, Section, Offset + 4);
934 XDataRecord = getSymbol(COFF, RF.ExceptionInformationRVA());
963 FunctionAddress = COFF.getImageBase() + RF.BeginAddress;
999 return dumpXDataRecord(COFF, *SI, FunctionAddress,
1002 uint64_t Address = COFF.getImageBase() + RF.ExceptionInformationRVA();
1005 ErrorOr<SectionRef> Section = getSectionContaining(COFF, Address);
1009 return dumpXDataRecord(COFF, *Section, FunctionAddress, Address);
1013 bool Decoder::dumpPackedEntry(const object::COFFObjectFile &COFF,
1020 ErrorOr<SymbolRef> Function = getRelocatedSymbol(COFF, Section, Offset);
1022 Function = getSymbol(COFF, RF.BeginAddress, /*FunctionOnly=*/true);
1046 FunctionAddress = COFF.getPE32Header()->ImageBase + RF.BeginAddress;
1064 bool Decoder::dumpProcedureDataEntry(const COFFObjectFile &COFF,
1074 return dumpUnpackedEntry(COFF, Section, Offset, Index, Entry);
1079 return dumpPackedEntry(COFF, Section, Offset, Index, Entry);
1082 void Decoder::dumpProcedureData(const COFFObjectFile &COFF,
1085 if (COFF.getSectionContents(COFF.getCOFFSection(Section), Contents))
1094 if (!dumpProcedureDataEntry(COFF, Section, EI, Contents))
1098 Error Decoder::dumpProcedureData(const COFFObjectFile &COFF) {
1099 for (const auto &Section : COFF.sections()) {
1101 COFF.getSectionName(COFF.getCOFFSection(Section));
1106 dumpProcedureData(COFF, Section);