summaryrefslogtreecommitdiff
path: root/src/inc/iceefilegen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inc/iceefilegen.h')
-rw-r--r--src/inc/iceefilegen.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/inc/iceefilegen.h b/src/inc/iceefilegen.h
index 58c1ebc249..c33a7b12ee 100644
--- a/src/inc/iceefilegen.h
+++ b/src/inc/iceefilegen.h
@@ -10,8 +10,6 @@
** This will typically be used by compilers to generate their compiled **
** output executable. **
** **
- ** The implemenation lives in mscorpe.dll **
- ** **
*****************************************************************************/
/*
@@ -27,15 +25,8 @@
ICLRRuntimeInfo * pCLRRuntimeInfo;
pMetaHost->GetRuntime(wszClrVersion, IID_ICLRRuntimeInfo, &pCLRRuntimeInfo);
- // Step #2 ... Load mscorpe.dll and get its entrypoints
- HMODULE hModule;
- pCLRRuntimeInfo->LoadLibrary(L"mscorpe.dll", &hModule);
-
- PFN_CreateICeeFileGen pfnCreateICeeFileGen = (PFN_CreateICeeFileGen)::GetProcAddress("CreateICeeFileGen"); // Windows API
- PFN_DestroyICeeFileGen pfnDestroyICeeFileGen = (PFN_DestroyICeeFileGen)::GetProcAddress("DestroyICeeFileGen"); // Windows API
-
- // Step #3 ... Use mscorpe.dll APIs
- pfnCreateICeeFileGen(...); // Get a ICeeFileGen
+ // Step #2 ... use mscorpe APIs to create a file generator
+ CreateICeeFileGen(...); // Get a ICeeFileGen
CreateCeeFile(...); // Get a HCEEFILE (called for every output file needed)
SetOutputFileName(...); // Set the name for the output file
@@ -44,7 +35,7 @@
EmitMetaDataEx(pEmit); // Write out the metadata
GenerateCeeFile(...); // Write out the file. Implicitly calls LinkCeeFile and FixupCeeFile
- pfnDestroyICeeFileGen(...); // Release the ICeeFileGen object
+ DestroyICeeFileGen(...); // Release the ICeeFileGen object
*/
@@ -58,10 +49,8 @@ class ICeeFileGen;
typedef void *HCEEFILE;
-#ifdef FEATURE_CORECLR
EXTERN_C HRESULT __stdcall CreateICeeFileGen(ICeeFileGen** pCeeFileGen);
EXTERN_C HRESULT __stdcall DestroyICeeFileGen(ICeeFileGen ** ppCeeFileGen);
-#endif
typedef HRESULT (__stdcall * PFN_CreateICeeFileGen)(ICeeFileGen ** ceeFileGen); // call this to instantiate an ICeeFileGen interface
typedef HRESULT (__stdcall * PFN_DestroyICeeFileGen)(ICeeFileGen ** ceeFileGen); // call this to delete an ICeeFileGen