llvm-project
7e928f9d - [llvm] fix missing and incorrect LLVM_ABI annotations (#147399)

Commit
164 days ago
[llvm] fix missing and incorrect LLVM_ABI annotations (#147399) ## Purpose This patch is one in a series of code-mods that annotate LLVM’s public interface for export. This patch adds `LLVM_ABI` annotations to some recently added symbols that were previously missed. It also removes `LLVM_ABI` from symbols where it is problematic. The LLVM annotation currently has no meaningful impact on the LLVM build; however, it is a prerequisite to support an LLVM Windows DLL (shared library) build. ## Overview These changes were generated automatically using the [Interface Definition Scanner (IDS)](https://github.com/compnerd/ids) tool, followed formatting with `git clang-format`. NOTE: I am using a modified version of IDS with local patches so it removes unnecessary export annotations. These local IDS changes generated all of the `LLVM_ABI` deletions in this PR. ## Background This effort is tracked in #109483. Additional context is provided in [this discourse](https://discourse.llvm.org/t/psa-annotating-llvm-public-interface/85307), and documentation for `LLVM_ABI` and related annotations is found in the LLVM repo [here](https://github.com/llvm/llvm-project/blob/main/llvm/docs/InterfaceExportAnnotations.rst). ## Validation Local builds and tests to validate cross-platform compatibility. This included llvm, clang, and lldb on the following configurations: - Windows with MSVC - Windows with Clang - Linux with GCC - Linux with Clang - Darwin with Clang
Author
Parents
Loading