Commit Graph

5 Commits

Author SHA1 Message Date
Adrian Prantl
fcbebc51c7 [Debug Info] Emit -gdwarf-types debug info for Builtin.FixedArray<>
This commit also changes how specialized types are being emitted. Previously we
would not emitthe detailed member information in the specialized type itself,
and instead rely on the fact that it was present in the unspecialized type,
however, this wold prevent us from emitting any bound generic members, so we're
now emitting the members in both variants of the type.

This uncovered a with type aliases that this commit also addresses: Because we
don't canonicalize types prior to caching in order to preserve type sugar,
alternative representations of recursive types (with one or more levels of
recursion unfolded) could create potential infinite chains of types. This is
addressed by checking whether a sugared type has an already emitted canonical
representation first, and if yes, creating a typedef node pointing directly to
it.

The donwside of doing this is that it can lead to the disappearnce of type
aliases definitions when they are used as parameters in bound generic
types. However, we still preserve that a type was `MyClass<MyAlias>`. We just
might have a typedef pointing director from `MyClass<MyAlias>` ->
`MyClass<CanonicalType>`.

rdar://144315592
2025-02-14 12:19:58 -08:00
Augusto Noronha
35f7eb713c [DebugInfo] Reenable 2 failings watch tests
The tests were not taking into account running in 32 bit platforms

rdar://124465351
2024-05-14 11:28:23 -07:00
Meghana Gupta
9e79964dd4 Disable DebugInfo tests on watchos 2024-04-09 11:00:29 -07:00
Alexis Laferrière
0543ff8f82 Tests: disable DebugInfo tests on armv7k 2024-03-12 11:20:48 -07:00
Augusto Noronha
cc0c488e23 [DebugInfo] Add -gdwarf-types tests for classes 2024-02-05 16:44:53 -08:00