Skip to content

Commit f0fbcc2

Browse files
Fix ThunkGenerator (#84390)
* Fix ThunkGenerator Fixes: ``` error CA1859: Change type of parameter 'tr' from 'System.IO.TextReader' to 'System.IO.StreamReader' for improved performance error CA1859: Change return type of method 'ParseInput' from 'System.Collections.Generic.IEnumerable<Thunkerator.FunctionDecl>' to 'System.Collections.ObjectModel.ReadOnlyCollection<Thunkerator.FunctionDecl>' for improved performance ``` * Fix typo
1 parent f5895b3 commit f0fbcc2

File tree

1 file changed

+2
-1
lines changed
  • src/coreclr/tools/Common/JitInterface/ThunkGenerator

1 file changed

+2
-1
lines changed

src/coreclr/tools/Common/JitInterface/ThunkGenerator/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System;
55
using System.Collections.Generic;
6+
using System.Collections.ObjectModel;
67
using System.Diagnostics;
78
using System.IO;
89
using System.Linq;
@@ -174,7 +175,7 @@ private enum ParseMode
174175
IFDEFING
175176
}
176177

177-
private static IEnumerable<FunctionDecl> ParseInput(TextReader tr)
178+
private static ReadOnlyCollection<FunctionDecl> ParseInput(StreamReader tr)
178179
{
179180
Dictionary<string, TypeReplacement> ThunkReturnTypes = new Dictionary<string, TypeReplacement>();
180181
Dictionary<string, TypeReplacement> ThunkTypes = new Dictionary<string, TypeReplacement>();

0 commit comments

Comments
 (0)