diff options
Diffstat (limited to 'llvm/include/llvm-c/lto.h')
-rw-r--r-- | llvm/include/llvm-c/lto.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h index 39acdc7c7dc..655aedcd3d0 100644 --- a/llvm/include/llvm-c/lto.h +++ b/llvm/include/llvm-c/lto.h @@ -44,7 +44,7 @@ typedef bool lto_bool_t; * @{ */ -#define LTO_API_VERSION 19 +#define LTO_API_VERSION 20 /** * \since prior to LTO_API_VERSION=3 @@ -136,12 +136,20 @@ lto_module_is_object_file_for_target(const char* path, const char* target_triple_prefix); /** - * Checks if a buffer is a loadable object file. + * Return true if \p Buffer contains a bitcode file with ObjC code (category + * or class) in it. * - * \since prior to LTO_API_VERSION=3 + * \since LTO_API_VERSION=20 */ -extern lto_bool_t -lto_module_is_object_file_in_memory(const void* mem, size_t length); +bool lto_module_has_objc_category(const void *mem, size_t length); + +/** +* Checks if a buffer is a loadable object file. +* +* \since prior to LTO_API_VERSION=3 +*/ +extern lto_bool_t lto_module_is_object_file_in_memory(const void *mem, + size_t length); /** * Checks if a buffer is a loadable object compiled for requested target. |