Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Style Changes
Browse files Browse the repository at this point in the history
Changed struct accessibility and formatting to conform with standard
formatting
  • Loading branch information
A-And committed Aug 22, 2016
1 parent ba46798 commit 22381e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/ILCompiler.Compiler/src/CppCodeGen/CppWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ private String GetCodeForObjectNode(ObjectNode node, NodeFactory factory)
{
nextRelocOffset = relocs[nextRelocIndex].Offset;
}
nodeDataSections.Add(new NodeDataSection() { SectionType = NodeDataSectionType.Relocation, SectionSize = size });
nodeDataSections.Add(new NodeDataSection(NodeDataSectionType.Relocation, size ));
i += size;
lastByteIndex = i;
}
Expand All @@ -789,7 +789,7 @@ private String GetCodeForObjectNode(ObjectNode node, NodeFactory factory)
i++;
if (i + 1 == nextRelocOffset || i + 1 == nodeData.Data.Length)
{
nodeDataSections.Add(new NodeDataSection() { SectionType = NodeDataSectionType.ByteData, SectionSize = (i + 1) - lastByteIndex });
nodeDataSections.Add(new NodeDataSection( NodeDataSectionType.ByteData, (i + 1) - lastByteIndex ));
}
}
}
Expand Down
15 changes: 10 additions & 5 deletions src/ILCompiler.Compiler/src/CppCodeGen/NodeDataSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@

namespace ILCompiler.Compiler.CppCodeGen
{
public enum NodeDataSectionType
{
internal enum NodeDataSectionType {
Relocation,
ByteData
}

public struct NodeDataSection
internal struct NodeDataSection
{
public NodeDataSectionType SectionType;
public int SectionSize;
public readonly NodeDataSectionType SectionType;
public readonly int SectionSize;

public NodeDataSection(NodeDataSectionType sectionType, int sectionSize)
{
SectionType = sectionType;
SectionSize = sectionSize;
}
}
}

0 comments on commit 22381e0

Please sign in to comment.