Commit Graph

7 Commits

Author SHA1 Message Date
Cyndy Ishida
f80da87839 [TBDGen] Add back standalone OBJC_METACLASS symbols (#70827)
It turns out there are valid usecases for exposing a standalone
objc-metaclass symbols and tbd files must encode it correctly.

resolves: rdar://118499886
2024-02-12 12:23:14 -08:00
Cyndy Ishida
f869bd7e8a [TBDGen] Write tbd-v5 files by default
* Fixup tests to handle new json based output.
* Use llvm-nm & readtapi to verify tbd file outputs.

resolves: rdar://117604275
2023-11-14 08:06:24 -08:00
Cyndy Ishida
98fa58408f [swift][TBDGen] Stop adding redundant ObjC Classes (#62068)
TBD files contain a section reserved for obj-c classes. Previously,
TBDGen was adding symbols with this + normal globals with objc class
prefixes. This patch removes the extra globals being added.

This also accounts for this behavior for `validate-tbd-against-ir`
checking.

Resolves: rdar://101442087
2022-11-11 20:36:31 -08:00
Cyndy Ishida
27d8cef6ea [TBDGen] clean up spacing in test, NFC (#35643) 2021-01-29 03:54:17 -08:00
Cyndy Ishida
4e1987fdf4 [TBDGen] don't add "_" when adding objc classes to swift TBD (#35621)
This entry is incorrect and causes tapi pedantic check to fail.
<rdar://problem/73664795>
2021-01-28 10:04:33 -08:00
Xi Ge
31afb3f692 Revert "TBDGen: avoid emitting symbols with OBJC_CLASS and OBJC_METACLASS prefixes"
For clang decls marked with SWIFT_CLASS, these explicit class initializer symbols turn
out to be necessary in the TBD files.

rdar://60857470
2020-03-26 10:46:53 -07:00
Xi Ge
699e05712f TBDGen: avoid emitting symbols with OBJC_CLASS and OBJC_METACLASS prefixes
rdar://60057489
2020-03-06 16:07:57 -08:00