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/IndirectionNode.cs')
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/IndirectionNode.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/IndirectionNode.cs b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/IndirectionNode.cs
index b62b4a511..77bd897ea 100644
--- a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/IndirectionNode.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/IndirectionNode.cs
@@ -14,11 +14,11 @@ namespace ILCompiler.DependencyAnalysis
/// </summary>
public class IndirectionNode : ObjectNode, ISymbolDefinitionNode
{
- private ISymbolNode _indirectedNode;
+ private ISortableSymbolNode _indirectedNode;
private int _offsetDelta;
private TargetDetails _target;
- public IndirectionNode(TargetDetails target, ISymbolNode indirectedNode, int offsetDelta)
+ public IndirectionNode(TargetDetails target, ISortableSymbolNode indirectedNode, int offsetDelta)
{
_indirectedNode = indirectedNode;
_offsetDelta = offsetDelta;
@@ -60,5 +60,12 @@ namespace ILCompiler.DependencyAnalysis
return builder.ToObjectData();
}
+
+ protected internal override int ClassCode => -1401349230;
+
+ protected internal override int CompareToImpl(SortableDependencyNode other, CompilerComparer comparer)
+ {
+ return comparer.Compare(this._indirectedNode, ((IndirectionNode)other)._indirectedNode);
+ }
}
}