From 60f1e6265bd1039f023a82e0643b524d6aaf7845 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Wed, 3 Jul 2019 08:59:25 -0700 Subject: Cleanup IL linker heuristic usage (#25547) Prep-work for using mainstream IL linker --- src/vm/mscorlib.h | 1 + src/vm/typeparse.cpp | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/vm') diff --git a/src/vm/mscorlib.h b/src/vm/mscorlib.h index 403b27bf87..90e444141e 100644 --- a/src/vm/mscorlib.h +++ b/src/vm/mscorlib.h @@ -752,6 +752,7 @@ DEFINE_METHOD(SAFE_HANDLE, DISPOSE_BOOL, Dispose, DEFINE_CLASS(SAFE_TYPENAMEPARSER_HANDLE, System, SafeTypeNameParserHandle) +DEFINE_METHOD(SAFE_TYPENAMEPARSER_HANDLE, CTOR, .ctor, IM_RetVoid) DEFINE_CLASS(SECURITY_EXCEPTION, Security, SecurityException) diff --git a/src/vm/typeparse.cpp b/src/vm/typeparse.cpp index 9f8f733a73..0827d929eb 100644 --- a/src/vm/typeparse.cpp +++ b/src/vm/typeparse.cpp @@ -93,7 +93,15 @@ SAFEHANDLE TypeName::GetSafeHandle() GCPROTECT_BEGIN(objSafeHandle); objSafeHandle = (SAFEHANDLE)AllocateObject(MscorlibBinder::GetClass(CLASS__SAFE_TYPENAMEPARSER_HANDLE)); - CallDefaultConstructor(objSafeHandle); + + MethodDescCallSite strCtor(METHOD__SAFE_TYPENAMEPARSER_HANDLE__CTOR); + + ARG_SLOT args[1] = + { + ObjToArgSlot(objSafeHandle) + }; + + strCtor.Call(args); this->AddRef(); objSafeHandle->SetHandle(this); -- cgit v1.2.3