diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-12 22:10:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-12 22:10:57 +0000 |
commit | a9ad04191cb56c42944b17980b8b2bb2afe11ab2 (patch) | |
tree | 217ac479944faf363c1d09f76ff1b9eb70fbbd57 /include | |
parent | 2ffb0ce7dce2d5c243b90493807308af6fab0528 (diff) | |
download | llvm-a9ad04191cb56c42944b17980b8b2bb2afe11ab2.tar.gz llvm-a9ad04191cb56c42944b17980b8b2bb2afe11ab2.tar.bz2 llvm-a9ad04191cb56c42944b17980b8b2bb2afe11ab2.tar.xz |
This void is implicit in C++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/DenseMap.h | 4 | ||||
-rw-r--r-- | include/llvm/ExecutionEngine/JITMemoryManager.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/ErrorHandling.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/type_traits.h | 2 | ||||
-rw-r--r-- | include/llvm/System/Disassembler.h | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index 79672f996d..b5862a9f01 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -426,7 +426,7 @@ class DenseMapIterator { protected: const BucketT *Ptr, *End; public: - DenseMapIterator(void) : Ptr(0), End(0) {} + DenseMapIterator() : Ptr(0), End(0) {} DenseMapIterator(const BucketT *Pos, const BucketT *E) : Ptr(Pos), End(E) { AdvancePastEmptyBuckets(); @@ -470,7 +470,7 @@ private: template<typename KeyT, typename ValueT, typename KeyInfoT, typename ValueInfoT> class DenseMapConstIterator : public DenseMapIterator<KeyT, ValueT, KeyInfoT> { public: - DenseMapConstIterator(void) : DenseMapIterator<KeyT, ValueT, KeyInfoT>() {} + DenseMapConstIterator() : DenseMapIterator<KeyT, ValueT, KeyInfoT>() {} DenseMapConstIterator(const std::pair<KeyT, ValueT> *Pos, const std::pair<KeyT, ValueT> *E) : DenseMapIterator<KeyT, ValueT, KeyInfoT>(Pos, E) { diff --git a/include/llvm/ExecutionEngine/JITMemoryManager.h b/include/llvm/ExecutionEngine/JITMemoryManager.h index 4539011571..21dee55347 100644 --- a/include/llvm/ExecutionEngine/JITMemoryManager.h +++ b/include/llvm/ExecutionEngine/JITMemoryManager.h @@ -41,11 +41,11 @@ public: /// setMemoryWritable - When code generation is in progress, /// the code pages may need permissions changed. - virtual void setMemoryWritable(void) = 0; + virtual void setMemoryWritable() = 0; /// setMemoryExecutable - When code generation is done and we're ready to /// start execution, the code pages may need permissions changed. - virtual void setMemoryExecutable(void) = 0; + virtual void setMemoryExecutable() = 0; /// setPoisonMemory - Setting this flag to true makes the memory manager /// garbage values over freed memory. This is useful for testing and diff --git a/include/llvm/Support/ErrorHandling.h b/include/llvm/Support/ErrorHandling.h index dccdf9b29c..159a3c5d16 100644 --- a/include/llvm/Support/ErrorHandling.h +++ b/include/llvm/Support/ErrorHandling.h @@ -45,7 +45,7 @@ namespace llvm { /// Restores default error handling behaviour. /// This must not be called between llvm_start_multithreaded() and /// llvm_stop_multithreaded(). - void llvm_remove_error_handler(void); + void llvm_remove_error_handler(); /// Reports a serious error, calling any installed error handler. /// If no error handler is installed the default is to print the message to diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 5f6578fcb5..f7fbe21ee3 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -250,8 +250,8 @@ protected: void error_detected() { Error = true; } typedef char * iterator; - iterator begin(void) { return OutBufStart; } - iterator end(void) { return OutBufCur; } + iterator begin() { return OutBufStart; } + iterator end() { return OutBufCur; } //===--------------------------------------------------------------------===// // Private Interface diff --git a/include/llvm/Support/type_traits.h b/include/llvm/Support/type_traits.h index 32736b4141..71f7655e2e 100644 --- a/include/llvm/Support/type_traits.h +++ b/include/llvm/Support/type_traits.h @@ -35,7 +35,7 @@ namespace dont_use // important to make the is_class<T>::value idiom zero cost. it // evaluates to a constant 1 or 0 depending on whether the // parameter T is a class or not (respectively). - template<typename T> char is_class_helper(void(T::*)(void)); + template<typename T> char is_class_helper(void(T::*)()); template<typename T> double is_class_helper(...); } diff --git a/include/llvm/System/Disassembler.h b/include/llvm/System/Disassembler.h index d1d8a81007..6d1cc0fdcb 100644 --- a/include/llvm/System/Disassembler.h +++ b/include/llvm/System/Disassembler.h @@ -23,7 +23,7 @@ namespace sys { /// This function returns true, if there is possible to use some external /// disassembler library. False otherwise. -bool hasDisassembler(void); +bool hasDisassembler(); /// This function provides some "glue" code to call external disassembler /// libraries. |