diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-05 17:59:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-05 17:59:02 +0000 |
commit | d68a07650cdb2e18f18f362ba533459aa10e01b6 (patch) | |
tree | 0b0b5b402393260240d66dd4889d094b41a2ee82 /include/llvm/ADT | |
parent | 08f053f5d1df120dc8389a3ec8947ab16b1ccc53 (diff) | |
download | external_llvm-d68a07650cdb2e18f18f362ba533459aa10e01b6.tar.gz external_llvm-d68a07650cdb2e18f18f362ba533459aa10e01b6.tar.bz2 external_llvm-d68a07650cdb2e18f18f362ba533459aa10e01b6.zip |
Tidy up #includes, deleting a bunch of unnecessary #includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/FoldingSet.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/STLExtras.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/SparseBitVector.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/ilist.h | 3 |
4 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index 4c93711394..63f73b997d 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -457,6 +457,4 @@ template<typename T> struct FoldingSetTrait<const T*> { } // End of namespace llvm. - #endif - diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h index acfeae5473..ca711b7982 100644 --- a/include/llvm/ADT/STLExtras.h +++ b/include/llvm/ADT/STLExtras.h @@ -19,7 +19,7 @@ #include <functional> #include <utility> // for std::pair -#include <cstring> // for std::size_t +#include <cstddef> // for std::size_t #include "llvm/ADT/iterator.h" namespace llvm { diff --git a/include/llvm/ADT/SparseBitVector.h b/include/llvm/ADT/SparseBitVector.h index efd0accaad..b4b53805c4 100644 --- a/include/llvm/ADT/SparseBitVector.h +++ b/include/llvm/ADT/SparseBitVector.h @@ -17,11 +17,11 @@ #include <cassert> #include <cstring> -#include <algorithm> #include "llvm/Support/DataTypes.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/MathExtras.h" #include "llvm/ADT/ilist.h" + namespace llvm { /// SparseBitVector is an implementation of a bitvector that is sparse by only diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h index 0acbf46a1a..42d09c7b45 100644 --- a/include/llvm/ADT/ilist.h +++ b/include/llvm/ADT/ilist.h @@ -40,7 +40,6 @@ #include "llvm/ADT/iterator.h" #include <cassert> -#include <cstdlib> namespace llvm { @@ -366,7 +365,7 @@ public: } void swap(iplist &RHS) { - abort(); // Swap does not use list traits callback correctly yet! + assert(0 && "Swap does not use list traits callback correctly yet!"); std::swap(Head, RHS.Head); } |