diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-05-04 12:55:34 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-05-04 12:55:34 +0000 |
commit | 16c1f44d91211a225497062ea508d58fd25085a9 (patch) | |
tree | b681a968d163d326646c8c507c389c89c3b1dea1 /include/llvm-c | |
parent | 5759f97f50b49aed2f7763133a4af3aa54e24c5a (diff) | |
download | llvm-16c1f44d91211a225497062ea508d58fd25085a9.tar.gz llvm-16c1f44d91211a225497062ea508d58fd25085a9.tar.bz2 llvm-16c1f44d91211a225497062ea508d58fd25085a9.tar.xz |
Use (void) instead of () in C code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r-- | include/llvm-c/Core.h | 30 | ||||
-rw-r--r-- | include/llvm-c/lto.h | 6 |
2 files changed, 18 insertions, 18 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 1c89f66dfc..d3e7a08d90 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -228,20 +228,20 @@ LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty); void LLVMRefineAbstractType(LLVMTypeRef AbstractType, LLVMTypeRef ConcreteType); /* Operations on integer types */ -LLVMTypeRef LLVMInt1Type(); -LLVMTypeRef LLVMInt8Type(); -LLVMTypeRef LLVMInt16Type(); -LLVMTypeRef LLVMInt32Type(); -LLVMTypeRef LLVMInt64Type(); +LLVMTypeRef LLVMInt1Type(void); +LLVMTypeRef LLVMInt8Type(void); +LLVMTypeRef LLVMInt16Type(void); +LLVMTypeRef LLVMInt32Type(void); +LLVMTypeRef LLVMInt64Type(void); LLVMTypeRef LLVMIntType(unsigned NumBits); unsigned LLVMGetIntTypeWidth(LLVMTypeRef IntegerTy); /* Operations on real types */ -LLVMTypeRef LLVMFloatType(); -LLVMTypeRef LLVMDoubleType(); -LLVMTypeRef LLVMX86FP80Type(); -LLVMTypeRef LLVMFP128Type(); -LLVMTypeRef LLVMPPCFP128Type(); +LLVMTypeRef LLVMFloatType(void); +LLVMTypeRef LLVMDoubleType(void); +LLVMTypeRef LLVMX86FP80Type(void); +LLVMTypeRef LLVMFP128Type(void); +LLVMTypeRef LLVMPPCFP128Type(void); /* Operations on function types */ LLVMTypeRef LLVMFunctionType(LLVMTypeRef ReturnType, @@ -270,9 +270,9 @@ unsigned LLVMGetPointerAddressSpace(LLVMTypeRef PointerTy); unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy); /* Operations on other types */ -LLVMTypeRef LLVMVoidType(); -LLVMTypeRef LLVMLabelType(); -LLVMTypeRef LLVMOpaqueType(); +LLVMTypeRef LLVMVoidType(void); +LLVMTypeRef LLVMLabelType(void); +LLVMTypeRef LLVMOpaqueType(void); /* Operations on type handles */ LLVMTypeHandleRef LLVMCreateTypeHandle(LLVMTypeRef PotentiallyAbstractTy); @@ -477,7 +477,7 @@ LLVMBasicBlockRef LLVMGetIncomingBlock(LLVMValueRef PhiNode, unsigned Index); * exclusive means of building instructions using the C interface. */ -LLVMBuilderRef LLVMCreateBuilder(); +LLVMBuilderRef LLVMCreateBuilder(void); void LLVMPositionBuilder(LLVMBuilderRef Builder, LLVMBasicBlockRef Block, LLVMValueRef Instr); void LLVMPositionBuilderBefore(LLVMBuilderRef Builder, LLVMValueRef Instr); @@ -637,7 +637,7 @@ void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf); /** Constructs a new whole-module pass pipeline. This type of pipeline is suitable for link-time optimization and whole-module transformations. See llvm::PassManager::PassManager. */ -LLVMPassManagerRef LLVMCreatePassManager(); +LLVMPassManagerRef LLVMCreatePassManager(void); /** Constructs a new function-by-function pass pipeline over the module provider. It does not take ownership of the module provider. This type of diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index e42271dea0..508e871ec4 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -63,14 +63,14 @@ extern "C" { * Returns a printable string. */ extern const char* -lto_get_version(); +lto_get_version(void); /** * Returns the last error string or NULL if last operation was sucessful. */ extern const char* -lto_get_error_message(); +lto_get_error_message(void); /** @@ -160,7 +160,7 @@ lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index); * Returns NULL on error (check lto_get_error_message() for details). */ extern lto_code_gen_t -lto_codegen_create(); +lto_codegen_create(void); /** |