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:
authorMarek Safar <marek.safar@gmail.com>2018-09-19 15:19:22 +0300
committerGitHub <noreply@github.com>2018-09-19 15:19:22 +0300
commitefd29b5cf854679349066e22ef9038b8cfe76d94 (patch)
tree2de750c1ac8a487d7f6d149592a6362ade6a5a77 /src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NonGCStaticsNode.cs
parentf9124d69e41d42196510dd7234b2d53fed48ad4c (diff)
parent49f9ed0e66fc2d4cd682821396c6af5e80182048 (diff)
Merge pull request #25 from ntherning/bump-corert
Bump to latest upstream
Diffstat (limited to 'src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NonGCStaticsNode.cs')
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NonGCStaticsNode.cs15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NonGCStaticsNode.cs b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NonGCStaticsNode.cs
index dc6ade07c..ac2115d7c 100644
--- a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NonGCStaticsNode.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NonGCStaticsNode.cs
@@ -18,7 +18,7 @@ namespace ILCompiler.DependencyAnalysis
/// with the class constructor context if the type has a class constructor that
/// needs to be triggered before the type members can be accessed.
/// </summary>
- public class NonGCStaticsNode : ObjectNode, IExportableSymbolNode, ISortableSymbolNode
+ public class NonGCStaticsNode : ObjectNode, IExportableSymbolNode, ISortableSymbolNode, ISymbolNodeWithDebugInfo
{
private MetadataType _type;
private NodeFactory _factory;
@@ -69,6 +69,8 @@ namespace ILCompiler.DependencyAnalysis
}
}
+ public IDebugInfo DebugInfo => NullTypeIndexDebugInfo.Instance;
+
public override bool IsShareable => EETypeNode.IsTypeNodeShareable(_type);
public MetadataType Type => _type;
@@ -178,18 +180,11 @@ namespace ILCompiler.DependencyAnalysis
return builder.ToObjectData();
}
- protected internal override int ClassCode => -1173104872;
+ public override int ClassCode => -1173104872;
- protected internal override int CompareToImpl(SortableDependencyNode other, CompilerComparer comparer)
+ public override int CompareToImpl(ISortableNode other, CompilerComparer comparer)
{
return comparer.Compare(_type, ((NonGCStaticsNode)other)._type);
}
-
- int ISortableSymbolNode.ClassCode => ClassCode;
-
- int ISortableSymbolNode.CompareToImpl(ISortableSymbolNode other, CompilerComparer comparer)
- {
- return CompareToImpl((ObjectNode)other, comparer);
- }
}
}