Skip to content

Commit

Permalink
rename ExportsWriter to ExportedMethodsWriter (dotnet#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Dec 27, 2017
1 parent cb11f1f commit 7443e76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace ILCompiler.DependencyAnalysis
{
internal static class ExportsWriter
internal static class ExportedMethodsWriter
{
private static string _exportsFilePath;
private static string _moduleName;
Expand All @@ -30,17 +30,17 @@ private static void BuildExportsFileInfo(string outputFile)
_exportsFilePath = Path.Combine(directory, filename + GetExportsFileExtenstion());
}

public static void EmitExportedSymbols(string outputFile, NodeFactory factory)
public static void EmitExportedMethods(string outputFile, NodeFactory factory)
{
_targetDetails = factory.Target;
BuildExportsFileInfo(outputFile);
var nativeCallables = factory.NodeAliases.Where(n => n.Key is IMethodNode)
.Where(n => (n.Key as IMethodNode).Method.IsNativeCallable);

WriteExportedSymbolsToFile(nativeCallables.Select(n => n.Value));
WriteExportedMethodsToFile(nativeCallables.Select(n => n.Value));
}

private static void WriteExportedSymbolsToFile(IEnumerable<string> exportNames)
private static void WriteExportedMethodsToFile(IEnumerable<string> exportNames)
{
StringBuilder stringBuilder = new StringBuilder();

Expand Down
2 changes: 1 addition & 1 deletion src/ILCompiler.Compiler/src/Compiler/RyuJitCompilation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected override void CompileInternal(string outputFile, ObjectDumper dumper)
var nodes = _dependencyGraph.MarkedNodeList;

NodeFactory.SetMarkingComplete();
ExportsWriter.EmitExportedSymbols(outputFile, NodeFactory);
ExportedMethodsWriter.EmitExportedMethods(outputFile, NodeFactory);
ObjectWriter.EmitObject(outputFile, nodes, NodeFactory, dumper);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ILCompiler.Compiler/src/ILCompiler.Compiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
<Compile Include="Compiler\DependencyAnalysis\GenericTypesTemplateMap.cs" />
<Compile Include="Compiler\DependencyAnalysis\GenericMethodsHashtableNode.cs" />
<Compile Include="Compiler\DependencyAnalysis\ExactMethodInstantiationsNode.cs" />
<Compile Include="Compiler\DependencyAnalysis\ExportsWriter.cs" />
<Compile Include="Compiler\DependencyAnalysis\ExportedMethodsWriter.cs" />
<Compile Include="Compiler\DependencyAnalysis\GenericMethodsTemplateMap.cs" />
<Compile Include="Compiler\DependencyAnalysis\RuntimeFieldHandleNode.cs" />
<Compile Include="Compiler\DependencyAnalysis\RuntimeMethodHandleNode.cs" />
Expand Down

0 comments on commit 7443e76

Please sign in to comment.