diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2019-01-19 21:02:00 +0100 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-01-19 12:02:00 -0800 |
commit | d24a3ff0105ab5b9649b27451263e57e7ee6526b (patch) | |
tree | 1c5c5125863cfc1649ec5becd1b3fdcb53471380 /src/vm/comdelegate.cpp | |
parent | dce086f9bbd047296942f615f20a4f9a1e3a8d26 (diff) | |
download | coreclr-d24a3ff0105ab5b9649b27451263e57e7ee6526b.tar.gz coreclr-d24a3ff0105ab5b9649b27451263e57e7ee6526b.tar.bz2 coreclr-d24a3ff0105ab5b9649b27451263e57e7ee6526b.zip |
Cleanup: Remove MethodDesc::GetLoaderAllocatorForCode (#22067)
This function was recently changed to just return the
MethodDesc::GetLoaderAllocator. This is a cleanup that removes the
function completely and replaces all of its usages.
Diffstat (limited to 'src/vm/comdelegate.cpp')
-rw-r--r-- | src/vm/comdelegate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/comdelegate.cpp b/src/vm/comdelegate.cpp index 8ceab3e4c8..12edc538dd 100644 --- a/src/vm/comdelegate.cpp +++ b/src/vm/comdelegate.cpp @@ -1018,7 +1018,7 @@ void COMDelegate::BindToMethod(DELEGATEREF *pRefThis, else #ifdef HAS_THISPTR_RETBUF_PRECODE if (pTargetMethod->IsStatic() && pTargetMethod->HasRetBuffArg() && IsRetBuffPassedAsFirstArg()) - pTargetCode = pTargetMethod->GetLoaderAllocatorForCode()->GetFuncPtrStubs()->GetFuncPtrStub(pTargetMethod, PRECODE_THISPTR_RETBUF); + pTargetCode = pTargetMethod->GetLoaderAllocator()->GetFuncPtrStubs()->GetFuncPtrStub(pTargetMethod, PRECODE_THISPTR_RETBUF); else #endif // HAS_THISPTR_RETBUF_PRECODE pTargetCode = pTargetMethod->GetMultiCallableAddrOfCode(); @@ -1882,7 +1882,7 @@ FCIMPL3(void, COMDelegate::DelegateConstruct, Object* refThisUNSAFE, Object* tar } #ifdef HAS_THISPTR_RETBUF_PRECODE else if (pMeth->HasRetBuffArg() && IsRetBuffPassedAsFirstArg()) - method = pMeth->GetLoaderAllocatorForCode()->GetFuncPtrStubs()->GetFuncPtrStub(pMeth, PRECODE_THISPTR_RETBUF); + method = pMeth->GetLoaderAllocator()->GetFuncPtrStubs()->GetFuncPtrStub(pMeth, PRECODE_THISPTR_RETBUF); #endif // HAS_THISPTR_RETBUF_PRECODE gc.refThis->SetTarget(gc.target); |