Lines Matching refs:COFF
11 #include "llvm/Object/COFF.h"
114 static std::error_code getSymbol(const COFFObjectFile &COFF, uint64_t VA,
116 for (const auto &Symbol : COFF.symbols()) {
128 static object::SymbolRef getPreferredSymbol(const COFFObjectFile &COFF,
134 COFFSymbolRef CoffSym = COFF.getCOFFSymbol(Sym);
135 if (CoffSym.getStorageClass() != COFF::IMAGE_SYM_CLASS_LABEL &&
138 for (const auto &S : COFF.symbols()) {
139 COFFSymbolRef CS = COFF.getCOFFSymbol(S);
142 CS.getStorageClass() != COFF::IMAGE_SYM_CLASS_LABEL &&
172 Symbol = getPreferredSymbol(Ctx.COFF, Symbol, Displacement, IsRangeEnd);
186 } else if (!getSymbol(Ctx.COFF, Ctx.COFF.getImageBase() + Displacement,
191 OS << format(" (0x%" PRIX64 ")", Ctx.COFF.getImageBase() + Displacement);
199 OS << format("(0x%" PRIX64 ")", Ctx.COFF.getImageBase() + Displacement);
223 ResolvedSection = Ctx.COFF.getCOFFSection(**SI);
228 getSectionContaining(const COFFObjectFile &COFF, uint64_t VA) {
229 for (const auto &Section : COFF.sections()) {
234 return COFF.getCOFFSection(Section);
371 uint64_t Address = Ctx.COFF.getImageBase() + RF.UnwindInfoOffset;
372 XData = getSectionContaining(Ctx.COFF, Address);
379 if (Error E = Ctx.COFF.getSectionContents(XData, Contents))
380 reportError(std::move(E), Ctx.COFF.getFileName());
393 for (const auto &Section : Ctx.COFF.sections()) {
403 const coff_section *PData = Ctx.COFF.getCOFFSection(Section);
406 if (Error E = Ctx.COFF.getSectionContents(PData, Contents))
407 reportError(std::move(E), Ctx.COFF.getFileName());
418 printRuntimeFunction(Ctx, Ctx.COFF.getCOFFSection(Section),