summaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/InterfaceFile.cpp
AgeCommit message (Collapse)Author
2025-06-04[llvm] Remove unused includes (NFC) (#142733)Kazu Hirata
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
2025-05-16[TextAPI] Use llvm::replace (NFC) (#140201)Kazu Hirata
2025-03-18[TextAPI] Track RPaths in the order its provided via command line. (#131665)Cyndy Ishida
RPaths are basically search paths for how to load dependent libraries. The order they appear is the order the linker will search, we should preserve that order in tbd files. * Additionally add this level of detection to llvm-readtapi. resolves: rdar://145603347
2024-11-19[TextAPI] Add missing attribute to remove/merge/extract operations (#116729)Cyndy Ishida
2024-08-05[TextAPI] Add an assertion for adding duplicate libraries into a single TBD ↵Cyndy Ishida
file (#101744) This would lead to a malformed TBD file.
2024-04-04[TextAPI] Reorder addRPath parameters (#87601)Cyndy Ishida
It matches up with other _attribute_ adding member functions and helps simplify InterfaceFile assignment for InstallAPI.
2024-02-12[TextAPI] Refactor BinaryAttrs to InterfaceFile assignment (#81551)Cyndy Ishida
Create a helper method for this operation, so it can be reused in multiple places. Additonally move FileType enum into its own header to avoid include cycles.
2024-01-09[TextAPI] Skip adding empty attributes (#77400)Cyndy Ishida
An empty string attribute value (e.g. a parent-umbrella: "") is equivalent to omitting it. Theres no reason to write it out.
2023-11-09[llvm][TextAPI] Add new `not_for_dyld_shared_cache` attribute to file… ↵Cyndy Ishida
(#71735) … format. Formats >= TBDv4 will now encode new attribute that the system static linker wil read when tbd files replace binary dylibs.
2023-08-30[llvm][ReadTAPI] Add & fix rpath comparison checksCyndy Ishida
* Check and emit out differences in rpath inputs * Prevent rpaths from being overwritten * Capture file path for tbd-v5
2023-08-11[TextAPI] Express MH_SIM_SUPPORT in tbd files.Cyndy Ishida
This adds a new optional flag sim_support which is the same as MH_SIM_SUPPORT in the MachO header. Reviewed By: ributzka Differential Revision: https://reviews.llvm.org/D157433
2023-07-25[TextAPI] Add functionality to manipulate over InterfaceFilesCyndy Ishida
InterfaceFile is the in-memory representation for tbd files. Add APIs to merge, extract, remove, and inline reexported libraries. Reviewed By: zixuw Differential Revision: https://reviews.llvm.org/D153398
2023-07-24[TextAPI] Remove TBD file attributes that aren't used anymore.Cyndy Ishida
UUID's & `installapi` flag are no longer useful in recent apple linker/tapi. The reason for removing them is that these are attributes that record how a library was built but not really about the library itself. TBD files now only track information this is important as link time dependencies. Reviewed By: ributzka Differential Revision: https://reviews.llvm.org/D149861
2023-07-24[TextAPI] Introduce SymbolSetCyndy Ishida
SymbolSet is a structure that acts as a simple container class for exported symbols that belong to a library interface. It allows tapi to decouple the globals from the other library attributes. It's uniqued by symbol name and `kind`, which all contain their assigned target triples. Reviewed By: zixuw Differential Revision: https://reviews.llvm.org/D149860
2023-04-01[llvm][TextAPI] only compare deployment version for InterfaceFile.Cyndy Ishida
2023-02-22[TextAPI] Add support for TBDv5 Files to nm & tapi-diffCyndy Ishida
This includes handling of new attributes for symbols & rpath. In the event that an older format file is compared to tbd_v5, ignore these new attributes. Reviewed By: ributzka Differential Revision: https://reviews.llvm.org/D144529
2023-02-18[TextAPI] Capture new properties from TBD to InterfaceFileCyndy Ishida
* Deployment Versions for targets * Run Search Paths * Text vs Data Segment attributes to symbols Reviewed By: pete Differential Revision: https://reviews.llvm.org/D144158
2021-04-05[TextAPI] move source code files out of subdirectory, NFCCyndy Ishida
TextAPI/ELF has moved out into InterfaceStubs, so theres no longer a need to seperate out TextAPI between formats. Reviewed By: ributzka, int3, #lld-macho Differential Revision: https://reviews.llvm.org/D99811