diff options
author | mikedn <onemihaid@hotmail.com> | 2017-01-16 06:49:18 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-01-15 20:49:18 -0800 |
commit | 8c2db15331291324573d752fb3b6a3a9dae73b31 (patch) | |
tree | eedc5197f454a9771f56b28af5630300ee75768b /src/ilasm | |
parent | 496c33f0b5c6ad87257dd1ff1c42ea8db0a53ae0 (diff) | |
download | coreclr-8c2db15331291324573d752fb3b6a3a9dae73b31.tar.gz coreclr-8c2db15331291324573d752fb3b6a3a9dae73b31.tar.bz2 coreclr-8c2db15331291324573d752fb3b6a3a9dae73b31.zip |
Remove mscorpe cruft (#8957)
Diffstat (limited to 'src/ilasm')
-rw-r--r-- | src/ilasm/MscorpeSxS.cpp | 23 | ||||
-rw-r--r-- | src/ilasm/MscorpeSxS.h | 20 | ||||
-rw-r--r-- | src/ilasm/assem.cpp | 22 |
3 files changed, 6 insertions, 59 deletions
diff --git a/src/ilasm/MscorpeSxS.cpp b/src/ilasm/MscorpeSxS.cpp deleted file mode 100644 index b3b94f466b..0000000000 --- a/src/ilasm/MscorpeSxS.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -// -// File: MscorpeSxS.cpp -// - -// -// This file defines a wrapper for SxS version of mscorpe.dll (dynamically loaded via shim). -// -#include "ilasmpch.h" - -#include "MscorpeSxS.h" - -#include <LegacyActivationShim.h> - -// Loads mscorpe.dll (uses shim) -HRESULT -LoadMscorpeDll(HMODULE * phModule) -{ - // Load SxS version of mscorpe.dll (i.e. mscorpehost.dll) and initialize it - return LegacyActivationShim::LoadLibraryShim(L"mscorpe.dll", NULL, NULL, phModule); -} diff --git a/src/ilasm/MscorpeSxS.h b/src/ilasm/MscorpeSxS.h deleted file mode 100644 index 8cee9c49cd..0000000000 --- a/src/ilasm/MscorpeSxS.h +++ /dev/null @@ -1,20 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -// -// File: MscorpeSxS.h -// - -// -// This file defines a wrapper for SxS version of mscorpe.dll (dynamically loaded via shim). -// - -#pragma once - -#include <MscorpeSxSWrapper.h> - -// Loads mscorpe.dll (uses shim) -HRESULT LoadMscorpeDll(HMODULE * phModule); - -// Wrapper for mscorpe.dll calls -typedef MscorpeSxSWrapper<LoadMscorpeDll> MscorpeSxS; diff --git a/src/ilasm/assem.cpp b/src/ilasm/assem.cpp index 8c56bdc047..18247621f9 100644 --- a/src/ilasm/assem.cpp +++ b/src/ilasm/assem.cpp @@ -15,15 +15,11 @@ #define DECLARE_DATA #include "assembler.h" -#ifdef FEATURE_CORECLR #ifdef FEATURE_PAL #include "coreclrloader.h" CoreCLRLoader *g_loader; #endif // FEATURE_PAL MetaDataGetDispenserFunc metaDataGetDispenser; -#else -#include "MscorpeSxS.h" -#endif // FEATURE_CORECLR void indexKeywords(Indx* indx); // defined in asmparse.y @@ -197,11 +193,9 @@ Assembler::~Assembler() if (m_pCeeFileGen != NULL) { if (m_pCeeFile) m_pCeeFileGen->DestroyCeeFile(&m_pCeeFile); -#ifdef FEATURE_CORECLR + DestroyICeeFileGen(&m_pCeeFileGen); -#else - MscorpeSxS::DestroyICeeFileGen(&m_pCeeFileGen); -#endif + m_pCeeFileGen = NULL; } @@ -276,18 +270,14 @@ BOOL Assembler::Init() if (m_pCeeFileGen != NULL) { if (m_pCeeFile) m_pCeeFileGen->DestroyCeeFile(&m_pCeeFile); -#ifdef FEATURE_CORECLR + DestroyICeeFileGen(&m_pCeeFileGen); -#else - MscorpeSxS::DestroyICeeFileGen(&m_pCeeFileGen); -#endif + m_pCeeFileGen = NULL; } -#ifdef FEATURE_CORECLR + if (FAILED(CreateICeeFileGen(&m_pCeeFileGen))) return FALSE; -#else - if (FAILED(MscorpeSxS::CreateICeeFileGen(&m_pCeeFileGen))) return FALSE; -#endif + if (FAILED(m_pCeeFileGen->CreateCeeFileEx(&m_pCeeFile,(ULONG)m_dwCeeFileFlags))) return FALSE; if (FAILED(m_pCeeFileGen->GetSectionCreate(m_pCeeFile, ".il", sdReadOnly, &m_pILSection))) return FALSE; |