Skip to content

Commit

Permalink
Modernize C# generation tools under coreclr/inc (#106719)
Browse files Browse the repository at this point in the history
* Port genheaders to NetCoreAppToolCurrent

* Modernize

* Use XmlLinq

* Update doc and add CORPROF_E_MODULE_IS_ENC

* Port CrstTypeTool to NetCoreAppToolCurrent

* Modernize

* Modernize errors

* Modernize

* Update usage

---------

Co-authored-by: Manish Godse <61718172+mangod9@users.noreply.github.com>
  • Loading branch information
huoyaoyuan and mangod9 committed Sep 20, 2024
1 parent 6c0414e commit f943b36
Show file tree
Hide file tree
Showing 11 changed files with 335 additions and 417 deletions.

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/coreclr/inc/CrstTypeTool/CrstTypeTool.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>$(NetCoreAppToolCurrent)</TargetFramework>
</PropertyGroup>

</Project>
5 changes: 5 additions & 0 deletions src/coreclr/inc/corerror.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,11 @@
<Comment> This object belongs to a non-gc heap </Comment>
</HRESULT>

<HRESULT NumericValue="0x8013138a">
<SymbolicName>CORPROF_E_MODULE_IS_ENC</SymbolicName>
<Comment> The module is EnC </Comment>
</HRESULT>

<HRESULT NumericValue="0x80131416">
<SymbolicName>CORSEC_E_POLICY_EXCEPTION</SymbolicName>
<Message>"PolicyException thrown."</Message>
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/inc/crsttypes_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// This file describes the range of Crst types available and their mapping to a numeric level (used by the
// runtime in debug mode to validate we're deadlock free). To modify these settings edit the
// file:CrstTypes.def file and run the clr\artifacts\CrstTypeTool utility to generate a new version of this file.
// file:CrstTypes.def file and run the .\CrstTypeTool utility to generate a new version of this file.

// Each Crst type is declared as a value in the following CrstType enum.
enum CrstType
Expand Down
231 changes: 0 additions & 231 deletions src/coreclr/inc/genheaders.cs

This file was deleted.

Loading

0 comments on commit f943b36

Please sign in to comment.