[PATCH] D114936: [llvm-c] Add header deprecations
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 2 01:15:41 PST 2021
nikic created this revision.
nikic added a reviewer: opaque-pointers.
Herald added a reviewer: deadalnix.
Herald added subscribers: dexonsmith, hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This adds support for header deprecation using `LLVM_ATTRIBUTE_C_DEPRECATED` (note that we can't use `LLVM_ATTRIBUTE_DEPRECATED`, which is C++ specific). This will not help people using the FFI interface, but may help people using the C headers.
While migrating the test code away from deprecated APIs I had to add a `LLVMGetGEPSourceElementType()` function, as the necessary functionality didn't seem to be present yet.
https://reviews.llvm.org/D114936
Files:
llvm/include/llvm-c/Core.h
llvm/include/llvm-c/Deprecated.h
llvm/lib/IR/Core.cpp
llvm/tools/llvm-c-test/calc.c
llvm/tools/llvm-c-test/echo.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114936.391248.patch
Type: text/x-patch
Size: 11133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211202/aadba14f/attachment.bin>
More information about the llvm-commits
mailing list