Lines Matching defs:COFF
11 #include "llvm/Object/COFF.h"
117 static std::error_code getSymbol(const COFFObjectFile &COFF, uint64_t VA,
119 for (const auto &Symbol : COFF.symbols()) {
131 static object::SymbolRef getPreferredSymbol(const COFFObjectFile &COFF,
137 COFFSymbolRef CoffSym = COFF.getCOFFSymbol(Sym);
138 if (CoffSym.getStorageClass() != COFF::IMAGE_SYM_CLASS_LABEL &&
141 for (const auto &S : COFF.symbols()) {
142 COFFSymbolRef CS = COFF.getCOFFSymbol(S);
145 CS.getStorageClass() != COFF::IMAGE_SYM_CLASS_LABEL &&
175 Symbol = getPreferredSymbol(Ctx.COFF, Symbol, Displacement, IsRangeEnd);
189 } else if (!getSymbol(Ctx.COFF, Ctx.COFF.getImageBase() + Displacement,
194 OS << format(" (0x%" PRIX64 ")", Ctx.COFF.getImageBase() + Displacement);
202 OS << format("(0x%" PRIX64 ")", Ctx.COFF.getImageBase() + Displacement);
226 ResolvedSection = Ctx.COFF.getCOFFSection(**SI);
231 getSectionContaining(const COFFObjectFile &COFF, uint64_t VA) {
232 for (const auto &Section : COFF.sections()) {
237 return COFF.getCOFFSection(Section);
393 uint64_t Address = Ctx.COFF.getImageBase() + RF.UnwindInfoOffset;
394 XData = getSectionContaining(Ctx.COFF, Address);
401 if (Error E = Ctx.COFF.getSectionContents(XData, Contents))
402 reportError(std::move(E), Ctx.COFF.getFileName());
415 for (const auto &Section : Ctx.COFF.sections()) {
425 const coff_section *PData = Ctx.COFF.getCOFFSection(Section);
428 if (Error E = Ctx.COFF.getSectionContents(PData, Contents))
429 reportError(std::move(E), Ctx.COFF.getFileName());
440 printRuntimeFunction(Ctx, Ctx.COFF.getCOFFSection(Section),