Skip to content

Commit

Permalink
Implement managed version of getTypeDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Mar 12, 2024
1 parent f0406b0 commit e5aa3ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,11 @@ private bool haveSameMethodDefinition(CORINFO_METHOD_STRUCT_* methHnd1, CORINFO_
return meth1.GetTypicalMethodDefinition() == meth2.GetTypicalMethodDefinition();
}

private CORINFO_CLASS_STRUCT_* getTypeDefinition(CORINFO_CLASS_STRUCT_* type)
{
return ObjectToHandle(HandleToObject(type).GetTypeDefinition());
}

private CorInfoInline canInline(CORINFO_METHOD_STRUCT_* callerHnd, CORINFO_METHOD_STRUCT_* calleeHnd)
{
MethodDesc callerMethod = HandleToObject(callerHnd);
Expand Down

0 comments on commit e5aa3ce

Please sign in to comment.