summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readtapi/DiffEngine.cpp
AgeCommit message (Collapse)Author
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
2025-03-04[readtapi] Condense output when comparing tbd files with mismatched inlined ↵Cyndy Ishida
libraries (#129754) Previously, when an inlined library existed in TBD file A but not in file B, all of the inlined library's attributes were printed. This is noisy since the important detail is the complete contents are missing. Instead, only print the install name of the inlined library and the marker for which the input file exists in.
2024-01-26[TextAPI] Rename SymbolKind to EncodeKind (#79622)Cyndy Ishida
A distinction that doesn't _usually_ matter is that the MachO::SymbolKind is really a mapping of entries in TBD files not symbols. To better understand this, rename the enum so it represents an encoding mapped to TBDs as opposed to symbols alone. For example, it can be a bit confusing that "GlobalSymbol" is a enum value when all of those values can represent a GlobalSymbol.
2023-11-17[readtapi] Add Merge functionality (#72656)Cyndy Ishida
Merge allows a user to merge different files (tbds for now or dylibs in the future) to emit out a single tbd with all input contents. This does require that all inputs represent the same library.
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-09-27[NFC] Use const references to avoid copying objects in for-loopsGregory Alfonso
Differential Revision: https://reviews.llvm.org/D139487
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-21[TextAPI] Make sortTargetValues strict weak ordering compliantDanila Kutenin
Second sorting was not following strict weak ordering as it does not follow transitivity of equivalence property. If you build llvm with libcxx at head as a standard library with -D_LIBCPP_DEBUG_STRICT_WEAK_ORDERING_CHECK and -D_LIBCPP_ENABLE_DEBUG_MODE, then tests like llvm/test/tools/llvm-readtapi/compare-right-single-inline.test.test will fail I don't have commit rights. Danila Kutenin kudanila@yandex.ru Reviewed By: cishida Differential Revision: https://reviews.llvm.org/D157958
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-31[llvm][tapi-diff] Transition diff-tool to be more general purposeCyndy Ishida
This is the first of transition tapi-diff to be readtapi. This tool will eventually replace functionality for Xcode's `xcrun tapi stubify` and `xcrun tapi archive`. This patch updates the tool name and is a minor refactor for the driver to handle more options. Reviewed By: zixuw Differential Revision: https://reviews.llvm.org/D153045