diff options
author | Tom Tromey <tromey@adacore.com> | 2025-02-24 11:11:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-24 10:11:53 -0800 |
commit | e298fc2da97120a30ee2f120ac184ab209fc1eb4 (patch) | |
tree | 3b72fa95d938b8ace37a479a1a119b73cd718dde /clang/lib/Serialization/InMemoryModuleCache.cpp | |
parent | 8dbc393e447299d1a4d35b96c6e66542a5928cff (diff) | |
download | llvm-e298fc2da97120a30ee2f120ac184ab209fc1eb4.zip llvm-e298fc2da97120a30ee2f120ac184ab209fc1eb4.tar.gz llvm-e298fc2da97120a30ee2f120ac184ab209fc1eb4.tar.bz2 |
Add DISubrangeType (#126772)
An Ada program can have types that are subranges of other types. This
patch adds a new DIType node, DISubrangeType, to represent this concept.
I considered extending the existing DISubrange to do this, but as
DISubrange does not derive from DIType, that approach seemed more
disruptive.
A DISubrangeType can be used both as an ordinary type, but also as the
type of an array index. This is also important for Ada.
Ada subrange types can also be stored using a bias. Representing this in
the DWARF required the use of an extension. GCC has been emitting this
extension for years, so I've reused it here.
Diffstat (limited to 'clang/lib/Serialization/InMemoryModuleCache.cpp')
0 files changed, 0 insertions, 0 deletions