Skip to content

Commit

Permalink
Unrelated R2R comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch committed Nov 2, 2022
1 parent 8979a0d commit a8ff57f
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/coreclr/jit/emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4142,7 +4142,14 @@ void emitter::emitDispCommentForHandle(size_t handle, size_t cookie, GenTreeFlag
}
else if (flag == GTF_ICON_CLASS_HDL)
{
str = emitComp->eeGetClassName(reinterpret_cast<CORINFO_CLASS_HANDLE>(handle));
if (!emitComp->opts.IsReadyToRun())
{
str = emitComp->eeGetClassName(reinterpret_cast<CORINFO_CLASS_HANDLE>(handle));
}
else
{
str = "class handle";
}
}
else if (flag == GTF_ICON_CONST_PTR)
{
Expand All @@ -4154,15 +4161,29 @@ void emitter::emitDispCommentForHandle(size_t handle, size_t cookie, GenTreeFlag
}
else if (flag == GTF_ICON_FIELD_HDL)
{
str = emitComp->eeGetFieldName(reinterpret_cast<CORINFO_FIELD_HANDLE>(handle));
if (!emitComp->opts.IsReadyToRun())
{
str = emitComp->eeGetFieldName(reinterpret_cast<CORINFO_FIELD_HANDLE>(handle));
}
else
{
str = "field handle";
}
}
else if (flag == GTF_ICON_STATIC_HDL)
{
str = "static handle";
}
else if (flag == GTF_ICON_METHOD_HDL)
{
str = emitComp->eeGetMethodFullName(reinterpret_cast<CORINFO_METHOD_HANDLE>(handle));
if (!emitComp->opts.IsReadyToRun())
{
str = emitComp->eeGetMethodFullName(reinterpret_cast<CORINFO_METHOD_HANDLE>(handle));
}
else
{
str = "method handle";
}
}
else if (flag == GTF_ICON_FTN_ADDR)
{
Expand Down

0 comments on commit a8ff57f

Please sign in to comment.