Commit Graph

7 Commits

Author SHA1 Message Date
Ian Anderson
eb11ad99a1 [Sema] Allow unrecognized platforms in @backDeployed and @_originallyDefinedIn
Don't emit attr_availability_need_platform_version for a @backDeployed or @_originallyDefinedIn that have a single unrecognized platform name.
2024-08-27 14:02:37 -07:00
Alexis Laferrière
8992d2c6b9 [Sema] Accept availability macros in @_originallyDefinedIn
Availability macros passed via the frontend flag -define-availability
should be accepted by @_originallyDefinedIn where they behave as they do
in @available.

rdar://72354787
2021-01-13 10:44:06 -08:00
Doug Gregor
4057e7ecbc [Test] Generalize a few attribute tests for iOS.
The tests for the @main and @_originallyDefinedIn attributes were
insufficiently general to get decent platform coverage. Generalize
them to at least run on iOS, with appropriate %target-run'ification.
2020-05-21 22:37:38 -07:00
Xi Ge
93a83d3f14 IRGen: reuse linker directives collected from tbd gen to emit these symbols to IR 2019-12-12 22:22:28 -08:00
Xi Ge
fdcd50628c IRGen: add a function suitable for emitting linker directive as global variable 2019-12-12 22:22:28 -08:00
Xi Ge
6be82b35cb test: add more ABI stability test for @_originallyDefinedIn 2019-12-09 12:48:26 -08:00
Xi Ge
ba95536533 test: add backward ABI compatibility test case for moving symbols using @_originallyDefinedIn 2019-12-05 13:40:59 -08:00