diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-11-15 16:51:49 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-11-15 16:51:49 +0000 |
commit | 79c07d2a36282b09b9c5d0aa65ebf4bff017621b (patch) | |
tree | 31248f56193b026fc44952e7ca596105f6184b44 /lib | |
parent | 65f3f32100b80366785f86c64a7ff0ee697107eb (diff) | |
download | external_llvm-79c07d2a36282b09b9c5d0aa65ebf4bff017621b.zip external_llvm-79c07d2a36282b09b9c5d0aa65ebf4bff017621b.tar.gz external_llvm-79c07d2a36282b09b9c5d0aa65ebf4bff017621b.tar.bz2 |
Use empty parens for empty function parameter list instead of '(void)'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.h | 2 | ||||
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.h | 2 | ||||
-rw-r--r-- | lib/Transforms/IPO/PassManagerBuilder.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Utils/MetaRenamer.cpp | 2 | ||||
-rw-r--r-- | lib/VMCore/PassManager.cpp | 16 |
6 files changed, 13 insertions, 13 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index d439d1d..37cb646 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -398,7 +398,7 @@ GetARMJTIPICJumpTableLabel2(unsigned uid, unsigned uid2) const { } -MCSymbol *ARMAsmPrinter::GetARMSJLJEHLabel(void) const { +MCSymbol *ARMAsmPrinter::GetARMSJLJEHLabel() const { SmallString<60> Name; raw_svector_ostream(Name) << MAI->getPrivateGlobalPrefix() << "SJLJEH" << getFunctionNumber(); diff --git a/lib/Target/ARM/ARMAsmPrinter.h b/lib/Target/ARM/ARMAsmPrinter.h index c875b2c..f7392fb 100644 --- a/lib/Target/ARM/ARMAsmPrinter.h +++ b/lib/Target/ARM/ARMAsmPrinter.h @@ -121,7 +121,7 @@ private: MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol); MCSymbol *GetARMJTIPICJumpTableLabel2(unsigned uid, unsigned uid2) const; - MCSymbol *GetARMSJLJEHLabel(void) const; + MCSymbol *GetARMSJLJEHLabel() const; MCSymbol *GetARMGVSymbol(const GlobalValue *GV); diff --git a/lib/Target/ARM/ARMISelLowering.h b/lib/Target/ARM/ARMISelLowering.h index 4eb3b2c..8bf803e 100644 --- a/lib/Target/ARM/ARMISelLowering.h +++ b/lib/Target/ARM/ARMISelLowering.h @@ -248,7 +248,7 @@ namespace llvm { public: explicit ARMTargetLowering(TargetMachine &TM); - virtual unsigned getJumpTableEncoding(void) const; + virtual unsigned getJumpTableEncoding() const; virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const; diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 05253fc..48e20ec 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -323,7 +323,7 @@ void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM, PM.add(createGlobalDCEPass()); } -LLVMPassManagerBuilderRef LLVMPassManagerBuilderCreate(void) { +LLVMPassManagerBuilderRef LLVMPassManagerBuilderCreate() { PassManagerBuilder *PMB = new PassManagerBuilder(); return wrap(PMB); } diff --git a/lib/Transforms/Utils/MetaRenamer.cpp b/lib/Transforms/Utils/MetaRenamer.cpp index 233bc12..ada8e3b 100644 --- a/lib/Transforms/Utils/MetaRenamer.cpp +++ b/lib/Transforms/Utils/MetaRenamer.cpp @@ -37,7 +37,7 @@ namespace { next = seed; } - int rand(void) { + int rand() { next = next * 1103515245 + 12345; return (unsigned int)(next / 65536) % 32768; } diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index b70a27e..8362034 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -311,11 +311,11 @@ public: /// doInitialization - Run all of the initializers for the module passes. /// - bool doInitialization(void); + bool doInitialization(); /// doFinalization - Run all of the finalizers for the module passes. /// - bool doFinalization(void); + bool doFinalization(); /// Pass Manager itself does not invalidate any analysis info. void getAnalysisUsage(AnalysisUsage &Info) const { @@ -404,11 +404,11 @@ public: /// doInitialization - Run all of the initializers for the module passes. /// - bool doInitialization(void); + bool doInitialization(); /// doFinalization - Run all of the finalizers for the module passes. /// - bool doFinalization(void); + bool doFinalization(); /// Pass Manager itself does not invalidate any analysis info. void getAnalysisUsage(AnalysisUsage &Info) const { @@ -1616,7 +1616,7 @@ MPPassManager::runOnModule(Module &M) { /// Run all of the initializers for the module passes. /// -bool MPPassManager::doInitialization(void) { +bool MPPassManager::doInitialization() { bool Changed = false; for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) @@ -1627,7 +1627,7 @@ bool MPPassManager::doInitialization(void) { /// Run all of the finalizers for the module passes. /// -bool MPPassManager::doFinalization(void) { +bool MPPassManager::doFinalization() { bool Changed = false; for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) @@ -1680,7 +1680,7 @@ Pass* MPPassManager::getOnTheFlyPass(Pass *MP, AnalysisID PI, Function &F){ //===----------------------------------------------------------------------===// // PassManagerImpl implementation -bool PassManagerImpl::doInitialization(void) { +bool PassManagerImpl::doInitialization() { bool Changed = false; for (unsigned Index = 0; Index < getNumContainedManagers(); ++Index) @@ -1689,7 +1689,7 @@ bool PassManagerImpl::doInitialization(void) { return Changed; } -bool PassManagerImpl::doFinalization(void) { +bool PassManagerImpl::doFinalization() { bool Changed = false; for (unsigned Index = 0; Index < getNumContainedManagers(); ++Index) |