Currently C API contains several deprecated functions,
however the deprecation mentioned only inside a comment around a function.
The patch replaces comment within attribute((deprecated("Use <alternative>"))).
Differential D18964
LLVM C API. Deprecated functions AlexDenisov on Apr 11 2016, 7:26 AM. Authored by
Details
Currently C API contains several deprecated functions, The patch replaces comment within attribute((deprecated("Use <alternative>"))).
Diff Detail
Event TimelineComment Actions Forgot to mention initially: the macro LLVM_ATTRIBUTE_DEPRECATED was copied from llvm/Support/Compiler.h Comment Actions Works for me. Give it a few days in case people want to comment or bikeshed on naming (the file name is a bit weird, but I don't have anything better). Thanks! -eric Comment Actions I didn't find good name for a new file either :)
Comment Actions We do already have a place, but I wasn't sure whether or not we wanted a Comment Actions This is exactly my intention. I copied the definition from llvm/Support/Compiler.h, but besides that it contains a lot of other stuff, that might not be suitable for C API (e.g. sanitizers).
This is a very good idea, I will skim through the implementations and check whether we can deprecate something there. Comment Actions I actually think it can just be included. It doesn't include any other -eric Comment Actions Seems it has C++ comments, as well as Definitions.h I introduced. |
Do we have to leave this in include/llvm-c? Could it be somewhere in include/llvm? We may already have a place for such macros.
Also sometimes we keep alive some C++ APIs just for the purpose of supporting a C API, I think we should mark these as deprecated as well so we know we can remove them.