aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm-c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-28 20:24:45 +0000
committerChris Lattner <sabre@nondot.org>2010-04-28 20:24:45 +0000
commitff33d833225d392600626f8f7bdfdf5a29482e75 (patch)
treeb47d3f4703ac80453f3a797e31df77d15079b240 /include/llvm-c
parentf3f325b82fdeeb055225d98d9076214108d35f39 (diff)
downloadexternal_llvm-ff33d833225d392600626f8f7bdfdf5a29482e75.zip
external_llvm-ff33d833225d392600626f8f7bdfdf5a29482e75.tar.gz
external_llvm-ff33d833225d392600626f8f7bdfdf5a29482e75.tar.bz2
declare targets with (void) instead of () since this is a C header.
Patch by Lars R in PR6961. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Target.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm-c/Target.h b/include/llvm-c/Target.h
index e705a99..2e952a3 100644
--- a/include/llvm-c/Target.h
+++ b/include/llvm-c/Target.h
@@ -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 */