Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Strehovský <michals@microsoft.com>2017-05-19 21:17:59 +0300
committerMichal Strehovský <michals@microsoft.com>2017-05-19 21:17:59 +0300
commit3a1bba7a4a13346ba3b73a21e795e32d2fe33e4e (patch)
tree6ac3f03a29cc7046009cf4210964af446fc0438b /src/ILCompiler.CppCodeGen
parent37e220b1182629eb0100a79b67735c5341712f6d (diff)
Move MetadataManager creation out of the builder
We'll want to allow compiler driver users to pick and configure the metadata manager to their liking.
Diffstat (limited to 'src/ILCompiler.CppCodeGen')
-rw-r--r--src/ILCompiler.CppCodeGen/src/Compiler/CppCodegenCompilationBuilder.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ILCompiler.CppCodeGen/src/Compiler/CppCodegenCompilationBuilder.cs b/src/ILCompiler.CppCodeGen/src/Compiler/CppCodegenCompilationBuilder.cs
index 0ad6851c0..7ea68e212 100644
--- a/src/ILCompiler.CppCodeGen/src/Compiler/CppCodegenCompilationBuilder.cs
+++ b/src/ILCompiler.CppCodeGen/src/Compiler/CppCodegenCompilationBuilder.cs
@@ -29,8 +29,7 @@ namespace ILCompiler
public override ICompilation ToCompilation()
{
- MetadataManager metadataManager = CreateMetadataManager();
- CppCodegenNodeFactory factory = new CppCodegenNodeFactory(_context, _compilationGroup, metadataManager, _nameMangler);
+ CppCodegenNodeFactory factory = new CppCodegenNodeFactory(_context, _compilationGroup, _metadataManager, _nameMangler);
DependencyAnalyzerBase<NodeFactory> graph = CreateDependencyGraph(factory);
return new CppCodegenCompilation(graph, factory, _compilationRoots, _logger, _config);