Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ protected override ObjectNodeSection GetDehydratedSection(NodeFactory factory)
public void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb)
{
sb.Append("__GCStaticEEType_"u8).Append(_gcMap.ToString());
if (_requiresAlign8)
{
sb.Append("_align8"u8);
}
}

int ISymbolDefinitionNode.Offset
Expand Down Expand Up @@ -107,7 +111,14 @@ protected override ObjectData GetDehydratableData(NodeFactory factory, bool relo

public override int CompareToImpl(ISortableNode other, CompilerComparer comparer)
{
return _gcMap.CompareTo(((GCStaticEETypeNode)other)._gcMap);
GCStaticEETypeNode otherGCStaticEETypeNode = (GCStaticEETypeNode)other;
int mapCompare = _gcMap.CompareTo(otherGCStaticEETypeNode._gcMap);
if (mapCompare == 0)
{
return _requiresAlign8.CompareTo(otherGCStaticEETypeNode._requiresAlign8);
}

return mapCompare;
}
}
}