diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-09-25 19:30:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 19:30:40 +0300 |
commit | d68fc481dc48321d4f16780288f90e6118e62660 (patch) | |
tree | 31eb6ab91cfd67280463a281537c458f39744d32 /src/ILCompiler.Compiler | |
parent | d21b5d029c802c1cac2dd6be58a8fe4bbec78bf8 (diff) | |
parent | eecd82cb270677de8999a2792769c3e70c524a2f (diff) |
Merge pull request #4604 from dotnet/nmirror
Merge nmirror to master
Diffstat (limited to 'src/ILCompiler.Compiler')
-rw-r--r-- | src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs index 37f053ec3..0198e5b33 100644 --- a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs +++ b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs @@ -213,7 +213,7 @@ namespace ILCompiler.DependencyAnalysis /// <summary> /// Generic lookup result that points to an EEType. /// </summary> - internal sealed class TypeHandleGenericLookupResult : GenericLookupResult + public sealed class TypeHandleGenericLookupResult : GenericLookupResult { private TypeDesc _type; @@ -238,6 +238,7 @@ namespace ILCompiler.DependencyAnalysis sb.Append(nameMangler.GetMangledTypeName(_type)); } + public TypeDesc Type => _type; public override string ToString() => $"TypeHandle: {_type}"; public override NativeLayoutVertexNode TemplateDictionaryNode(NodeFactory factory) @@ -932,7 +933,7 @@ namespace ILCompiler.DependencyAnalysis /// <summary> /// Generic lookup result that points to the GC static base of a type. /// </summary> - internal sealed class TypeGCStaticBaseGenericLookupResult : GenericLookupResult + public sealed class TypeGCStaticBaseGenericLookupResult : GenericLookupResult { private MetadataType _type; @@ -957,6 +958,7 @@ namespace ILCompiler.DependencyAnalysis sb.Append(nameMangler.GetMangledTypeName(_type)); } + public MetadataType Type => _type; public override string ToString() => $"GCStaticBase: {_type}"; public override NativeLayoutVertexNode TemplateDictionaryNode(NodeFactory factory) @@ -1290,7 +1292,7 @@ namespace ILCompiler.DependencyAnalysis } } - internal sealed class ThreadStaticOffsetLookupResult : GenericLookupResult + public sealed class ThreadStaticOffsetLookupResult : GenericLookupResult { private TypeDesc _type; @@ -1317,6 +1319,7 @@ namespace ILCompiler.DependencyAnalysis sb.Append(nameMangler.GetMangledTypeName(_type)); } + public TypeDesc Type => _type; public override string ToString() => $"ThreadStaticOffset: {_type}"; public override NativeLayoutVertexNode TemplateDictionaryNode(NodeFactory factory) |