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:
Diffstat (limited to 'src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GCStaticsNode.cs')
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GCStaticsNode.cs17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GCStaticsNode.cs b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GCStaticsNode.cs
index 814ea9756..39d886e5e 100644
--- a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GCStaticsNode.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GCStaticsNode.cs
@@ -12,7 +12,7 @@ using GCStaticRegionConstants = Internal.Runtime.GCStaticRegionConstants;
namespace ILCompiler.DependencyAnalysis
{
- public class GCStaticsNode : ObjectNode, IExportableSymbolNode, ISortableSymbolNode
+ public class GCStaticsNode : ObjectNode, IExportableSymbolNode, ISortableSymbolNode, ISymbolNodeWithDebugInfo
{
private MetadataType _type;
private List<PreInitFieldInfo> _preInitFieldInfos;
@@ -34,6 +34,8 @@ namespace ILCompiler.DependencyAnalysis
public int Offset => 0;
public MetadataType Type => _type;
+ public IDebugInfo DebugInfo => NullTypeIndexDebugInfo.Instance;
+
public static string GetMangledName(TypeDesc type, NameMangler nameMangler)
{
return nameMangler.NodeMangler.GCStatics(type);
@@ -63,7 +65,7 @@ namespace ILCompiler.DependencyAnalysis
}
dependencyList.Add(factory.GCStaticsRegion, "GCStatics Region");
- if (factory.Target.Abi == TargetAbi.CoreRT)
+ if (factory.Target.Abi != TargetAbi.ProjectN)
{
dependencyList.Add(GetGCStaticEETypeNode(factory), "GCStatic EEType");
if (_preInitFieldInfos != null)
@@ -130,18 +132,11 @@ namespace ILCompiler.DependencyAnalysis
}
}
- protected internal override int ClassCode => -522346696;
+ public override int ClassCode => -522346696;
- protected internal override int CompareToImpl(SortableDependencyNode other, CompilerComparer comparer)
+ public override int CompareToImpl(ISortableNode other, CompilerComparer comparer)
{
return comparer.Compare(_type, ((GCStaticsNode)other)._type);
}
-
- int ISortableSymbolNode.ClassCode => ClassCode;
-
- int ISortableSymbolNode.CompareToImpl(ISortableSymbolNode other, CompilerComparer comparer)
- {
- return CompareToImpl((ObjectNode)other, comparer);
- }
}
}