private string NoteILInstruction(Instruction inst, MethodTranslateContext methodContext) { if (convertersCXX.TryGetValue(inst.OpCode, out ICXXILConverter targetConverter)) { return(targetConverter.Note(inst, methodContext)); } return($"//{inst.ToString().HoldEscape()}"); }
private string TranslateILInstruction(Instruction inst, MethodTranslateContext methodContext) { if (convertersCXX.TryGetValue(inst.OpCode, out ICXXILConverter targetConverter)) { return(targetConverter.Convert(inst, methodContext)); } return(options.StaticAssertOnUnimplementatedILs ? $"static_assert(0, \"[{inst.ToString()}] Has No Converter Implementation!\");" : $"RTCLI::unimplemented_il(\"{ inst.ToString()}\"); //{inst.ToString()}"); }