diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-03-28 17:40:08 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-03-28 17:40:08 +0000 |
commit | 35623fb7d5dae3622c0106424c3655b0358bc766 (patch) | |
tree | a129a20bcf6a5a233354e51c24ceb837f747b902 /llvm/include/llvm-c | |
parent | 0509ef7f93f573f50af7eed6b1f8aa04784105cc (diff) | |
download | bcm5719-llvm-35623fb7d5dae3622c0106424c3655b0358bc766.tar.gz bcm5719-llvm-35623fb7d5dae3622c0106424c3655b0358bc766.zip |
Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes.
Differential revision: http://reviews.llvm.org/D18469
llvm-svn: 264598
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/Disassembler.h | 6 | ||||
-rw-r--r-- | llvm/include/llvm-c/lto.h | 20 |
2 files changed, 10 insertions, 16 deletions
diff --git a/llvm/include/llvm-c/Disassembler.h b/llvm/include/llvm-c/Disassembler.h index d6cbe31cbb4..d6f92e505d3 100644 --- a/llvm/include/llvm-c/Disassembler.h +++ b/llvm/include/llvm-c/Disassembler.h @@ -16,7 +16,11 @@ #define LLVM_C_DISASSEMBLER_H #include "llvm/Support/DataTypes.h" +#ifdef __cplusplus +#include <cstddef> +#else #include <stddef.h> +#endif /** * @defgroup LLVMCDisassembler Disassembler @@ -251,4 +255,4 @@ size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes, } #endif /* !defined(__cplusplus) */ -#endif /* !defined(LLVM_C_DISASSEMBLER_H) */ +#endif /* LLVM_C_DISASSEMBLER_H */ diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h index 88b10fdfbbb..42c280210a2 100644 --- a/llvm/include/llvm-c/lto.h +++ b/llvm/include/llvm-c/lto.h @@ -16,7 +16,11 @@ #ifndef LLVM_C_LTO_H #define LLVM_C_LTO_H +#ifdef __cplusplus +#include <cstddef> +#else #include <stddef.h> +#endif #include <sys/types.h> #ifndef __cplusplus @@ -105,7 +109,6 @@ extern "C" { extern const char* lto_get_version(void); - /** * Returns the last error string or NULL if last operation was successful. * @@ -122,7 +125,6 @@ lto_get_error_message(void); extern lto_bool_t lto_module_is_object_file(const char* path); - /** * Checks if a file is a loadable object compiled for requested target. * @@ -132,7 +134,6 @@ extern lto_bool_t lto_module_is_object_file_for_target(const char* path, const char* target_triple_prefix); - /** * Checks if a buffer is a loadable object file. * @@ -141,7 +142,6 @@ lto_module_is_object_file_for_target(const char* path, 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. * @@ -151,7 +151,6 @@ extern lto_bool_t lto_module_is_object_file_in_memory_for_target(const void* mem, size_t length, const char* target_triple_prefix); - /** * Loads an object file from disk. * Returns NULL on error (check lto_get_error_message() for details). @@ -161,7 +160,6 @@ lto_module_is_object_file_in_memory_for_target(const void* mem, size_t length, extern lto_module_t lto_module_create(const char* path); - /** * Loads an object file from memory. * Returns NULL on error (check lto_get_error_message() for details). @@ -254,7 +252,6 @@ lto_module_get_target_triple(lto_module_t mod); extern void lto_module_set_target_triple(lto_module_t mod, const char *triple); - /** * Returns the number of symbols in the object module. * @@ -263,7 +260,6 @@ lto_module_set_target_triple(lto_module_t mod, const char *triple); extern unsigned int lto_module_get_num_symbols(lto_module_t mod); - /** * Returns the name of the ith symbol in the object module. * @@ -272,7 +268,6 @@ lto_module_get_num_symbols(lto_module_t mod); extern const char* lto_module_get_symbol_name(lto_module_t mod, unsigned int index); - /** * Returns the attributes of the ith symbol in the object module. * @@ -281,7 +276,6 @@ lto_module_get_symbol_name(lto_module_t mod, unsigned int index); extern lto_symbol_attributes lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index); - /** * Returns the module's linker options. * @@ -293,7 +287,6 @@ lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index); extern const char* lto_module_get_linkeropts(lto_module_t mod); - /** * Diagnostic severity. * @@ -395,7 +388,6 @@ lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod); extern lto_bool_t lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model); - /** * Sets which PIC code model to generated. * Returns true on error (check lto_get_error_message() for details). @@ -405,7 +397,6 @@ lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model); extern lto_bool_t lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model); - /** * Sets the cpu to generate code for. * @@ -414,7 +405,6 @@ lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model); extern void lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu); - /** * Sets the location of the assembler tool to run. If not set, libLTO * will use gcc to invoke the assembler. @@ -773,4 +763,4 @@ extern void thinlto_codegen_add_cross_referenced_symbol(thinlto_code_gen_t cg, * @} */ -#endif +#endif /* LLVM_C_LTO_H */ |