diff options
author | Mark Wielaard <mark@klomp.org> | 2021-09-06 00:48:09 +0200 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-09-06 10:31:35 +0100 |
commit | 2bbe1af01db19b67cf668384b096e0e6a01765e6 (patch) | |
tree | 55446764ab88b4d4a09f30e57364012baf42cd24 /gcc/hwint.c | |
parent | 50623899998de5a8ffe47227a351c2b3dd29aa0a (diff) | |
download | gcc-2bbe1af01db19b67cf668384b096e0e6a01765e6.zip gcc-2bbe1af01db19b67cf668384b096e0e6a01765e6.tar.gz gcc-2bbe1af01db19b67cf668384b096e0e6a01765e6.tar.bz2 |
Parse optional visibility for enum item
Syntactically enum items can have a visibility. The visibility has to
be removed (through a cfg attribute or macro) before they get lowered.
The semantic checking will be done when we implement lowering enum items.
Make the AST EnumItem class a VisItem. This simplifies things a little
for cloning items, handling outer attributes and will help when adding
EnumItem (sub)classes to AST visitors (so they can be handled as
Items). Also add a get_identifier method to Enum and EnumItem.
Diffstat (limited to 'gcc/hwint.c')
0 files changed, 0 insertions, 0 deletions