Lines Matching defs:Ctx
33 unsigned getRelocType(MCContext &Ctx, const MCValue &Target,
91 static void checkIs32(MCContext &Ctx, SMLoc Loc, X86_64RelType Type) {
93 Ctx.reportError(Loc,
97 static void checkIs64(MCContext &Ctx, SMLoc Loc, X86_64RelType Type) {
99 Ctx.reportError(Loc,
103 static unsigned getRelocType64(MCContext &Ctx, SMLoc Loc,
145 Ctx.reportError(Loc, "unsupported relocation type");
194 checkIs32(Ctx, Loc, Type);
197 checkIs32(Ctx, Loc, Type);
200 checkIs32(Ctx, Loc, Type);
203 checkIs32(Ctx, Loc, Type);
206 checkIs32(Ctx, Loc, Type);
210 if (!Ctx.getTargetOptions()->X86RelaxRelocations)
223 checkIs32(Ctx, Loc, Type);
226 checkIs64(Ctx, Loc, Type);
233 static unsigned getRelocType32(MCContext &Ctx, SMLoc Loc,
262 if (!Ctx.getTargetOptions()->X86RelaxRelocations)
322 Ctx.reportError(Loc, "unsupported relocation type");
326 unsigned X86ELFObjectWriter::getRelocType(MCContext &Ctx, const MCValue &Target,
335 return getRelocType64(Ctx, Fixup.getLoc(), Modifier, Type, IsPCRel, Kind);
345 Ctx.reportError(Fixup.getLoc(), "unsupported relocation type");
358 return getRelocType32(Ctx, Fixup.getLoc(), Modifier, RelType, IsPCRel, Kind);