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ý <MichalStrehovsky@users.noreply.github.com>2016-05-24 04:44:26 +0300
committerJan Kotas <jkotas@microsoft.com>2016-05-24 04:44:26 +0300
commit41f49e708ebfbc8874491a10b5ae29cb9723865f (patch)
treec9fcf4fefd21bc9ea35d726c3549d7a61231cec0 /src/ILCompiler.MetadataTransform
parent1b26490ab30e8a03f46c9e266752267b34cb101d (diff)
Introduce distinction between modules and assemblies (#1286)
Introduce distinction between modules and assemblies
Diffstat (limited to 'src/ILCompiler.MetadataTransform')
-rw-r--r--src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.Scope.cs8
-rw-r--r--src/ILCompiler.MetadataTransform/tests/TestTypeSystemContext.cs2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.Scope.cs b/src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.Scope.cs
index cc30f2a19..1375c325d 100644
--- a/src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.Scope.cs
+++ b/src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.Scope.cs
@@ -62,13 +62,13 @@ namespace ILCompiler.Metadata
scopeDefinition.PublicKey = assemblyName.GetPublicKey();
- Cts.Ecma.EcmaModule ecmaModule = module as Cts.Ecma.EcmaModule;
- if (ecmaModule != null)
+ Cts.Ecma.EcmaAssembly ecmaAssembly = module as Cts.Ecma.EcmaAssembly;
+ if (ecmaAssembly != null)
{
- Ecma.CustomAttributeHandleCollection customAttributes = ecmaModule.AssemblyDefinition.GetCustomAttributes();
+ Ecma.CustomAttributeHandleCollection customAttributes = ecmaAssembly.AssemblyDefinition.GetCustomAttributes();
if (customAttributes.Count > 0)
{
- scopeDefinition.CustomAttributes = HandleCustomAttributes(ecmaModule, customAttributes);
+ scopeDefinition.CustomAttributes = HandleCustomAttributes(ecmaAssembly, customAttributes);
}
}
}
diff --git a/src/ILCompiler.MetadataTransform/tests/TestTypeSystemContext.cs b/src/ILCompiler.MetadataTransform/tests/TestTypeSystemContext.cs
index c3d0e9ff2..850b4415a 100644
--- a/src/ILCompiler.MetadataTransform/tests/TestTypeSystemContext.cs
+++ b/src/ILCompiler.MetadataTransform/tests/TestTypeSystemContext.cs
@@ -29,7 +29,7 @@ namespace MetadataTransformTests
public EcmaModule CreateModuleForSimpleName(string simpleName)
{
- EcmaModule module = new EcmaModule(this, new PEReader(File.OpenRead(simpleName + ".dll")));
+ EcmaModule module = EcmaModule.Create(this, new PEReader(File.OpenRead(simpleName + ".dll")));
_modules.Add(simpleName, module);
return module;
}