declare targets with (void) instead of () since this is a C header.
authorChris Lattner <sabre@nondot.org>
Wed, 28 Apr 2010 20:24:45 +0000 (20:24 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 28 Apr 2010 20:24:45 +0000 (20:24 +0000)
Patch by Lars R in PR6961.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102523 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/Target.h

index e705a99896945cb129819e586d61cfc95d90e030..2e952a3530c2b0a9269c8fc6febb96a97ecf93fe 100644 (file)
@@ -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 */