diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-11-15 14:28:07 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-11-15 14:28:07 +0000 |
commit | c4a77906c259cba58c147d8468c406a430ecdcbb (patch) | |
tree | 5bf3e2a794e263c5a7f97546391b33b96c3173a3 /lib/CodeGen | |
parent | e0d80f1852bff0bcf8f71b73773cdff71bc94f33 (diff) |
Use empty parens for empty function parameter list instead of '(void)'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 2 | ||||
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 7fe12b5e7f..756af3fce7 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -2782,7 +2782,7 @@ CGDebugInfo::getOrCreateNameSpace(const NamespaceDecl *NSDecl) { return NS; } -void CGDebugInfo::finalize(void) { +void CGDebugInfo::finalize() { for (std::vector<std::pair<void *, llvm::WeakVH> >::const_iterator VI = ReplaceMap.begin(), VE = ReplaceMap.end(); VI != VE; ++VI) { llvm::DIType Ty, RepTy; diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index 2e88a7376a..efa6b86d86 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/lib/CodeGen/CGDebugInfo.h @@ -169,7 +169,7 @@ public: CGDebugInfo(CodeGenModule &CGM); ~CGDebugInfo(); - void finalize(void); + void finalize(); /// setLocation - Update the current source location. If \arg loc is /// invalid it is ignored. diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index df73abc060..d9510f2df6 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -385,7 +385,7 @@ private: /// a class defined in the runtime, declaring no methods, but adopting the /// protocols. This is a horribly ugly hack, but it allows us to collect all /// of the protocols without changing the ABI. - void GenerateProtocolHolderCategory(void); + void GenerateProtocolHolderCategory(); /// Generates a class structure. llvm::Constant *GenerateClassStructure( llvm::Constant *MetaClass, @@ -1810,7 +1810,7 @@ void CGObjCGNU::GenerateProtocol(const ObjCProtocolDecl *PD) { llvm::ConstantExpr::getBitCast(MakeGlobal(ProtocolTy, Elements, ".objc_protocol"), IdTy); } -void CGObjCGNU::GenerateProtocolHolderCategory(void) { +void CGObjCGNU::GenerateProtocolHolderCategory() { // Collect information about instance methods SmallVector<Selector, 1> MethodSels; SmallVector<llvm::Constant*, 1> MethodTypes; diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 1167c87ce1..dd4a2ae4e7 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -983,11 +983,11 @@ private: /// EmitDeferred - Emit any needed decls for which code generation /// was deferred. - void EmitDeferred(void); + void EmitDeferred(); /// EmitLLVMUsed - Emit the llvm.used metadata used to force /// references to global which may otherwise be optimized out. - void EmitLLVMUsed(void); + void EmitLLVMUsed(); void EmitDeclMetadata(); |