-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces support for enumerations in C. Support for enums took a long time because I thought there was some way to discover the signedness of the integer type chosen by the compiler. GCC adds the DW_AT_type field to the enum definition in the DWARF structure. However, Clang does not emit this field and therefore we cannot rely on its existence to discover the signal of the type. There would be the possibility of taking a 'mixed' approach that checks for the existence of the field and, if any, analyzes the base type signal. However, to keep it simple, I will always assume enum as a signed type.
- Loading branch information
Showing
3 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters