示例#1
0
 private string NoteILInstruction(Instruction inst, MethodTranslateContext methodContext)
 {
     if (convertersCXX.TryGetValue(inst.OpCode, out ICXXILConverter targetConverter))
     {
         return(targetConverter.Note(inst, methodContext));
     }
     return($"//{inst.ToString().HoldEscape()}");
 }
示例#2
0
 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()}");
 }