misc: Migrate usage of RuntimeInformation to OperatingSystem (#2901)

Very basic migration across the codebase.
This commit is contained in:
Mary authored and GitHub committed 2021-12-04 20:02:30 -03:00
1 parent 7c9360d393
commit f39fce8f54
17 files changed
+77 -68

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ namespace ARMeilleure.CodeGen.X86
public static CallConvName GetCurrentCallConv()
{
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
return OperatingSystem.IsWindows()
? CallConvName.Windows
: CallConvName.SystemV;
}