Allan Shortlidge
2e8857d867
IRGen: Add #_hasSymbol support for clang function decls and ObjC classes.
...
Resolves rdar://103408651.
2022-12-22 10:55:30 -05:00
Cyndy Ishida
af742ad02b
[TBDGen] Ensure classes that emit ObjC MetaClass also emit ( #62283 )
...
matching ObjC Class symbols
This is to account for swift class definitions that have objc class
ancestory.
resolves: rdar://102525824
2022-11-29 07:14:42 -08:00
Allan Shortlidge
abdc4d9112
SILGen: Use has_symbol instruction in SILGen.
2022-11-16 16:07:29 -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
Allan Shortlidge
38779f32c1
SILGen/IRGen: Delegate decision to skip @_silgen_name functions to TBDGenVisitor.
...
This allows SILGen for `#_hasSymbol` conditions to visit them and emit a declaration of the function appropriately.
2022-11-02 21:38:33 -07:00
Allan Shortlidge
a44b54b818
NFC: Refactor the logic of TBDGenVisitor into two helper classes; SILSymbolVisitor and IRSymbolVisitor.
2022-10-30 09:14:29 -07:00