forked from OSchip/llvm-project
declare targets with (void) instead of () since this is a C header.
Patch by Lars R in PR6961. llvm-svn: 102523
This commit is contained in:
parent
450e29cb4c
commit
ee3576e8f1
|
|
@ -32,11 +32,11 @@ typedef struct LLVMOpaqueTargetData *LLVMTargetDataRef;
|
|||
typedef struct LLVMStructLayout *LLVMStructLayoutRef;
|
||||
|
||||
/* Declare all of the target-initialization functions that are available. */
|
||||
#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetInfo();
|
||||
#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetInfo(void);
|
||||
#include "llvm/Config/Targets.def"
|
||||
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||
|
||||
#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target();
|
||||
#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(void);
|
||||
#include "llvm/Config/Targets.def"
|
||||
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue