diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-08-26 19:16:32 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-08-26 19:16:32 +0000 |
commit | 7309be6735666143bd9835b275dc8501617a2591 (patch) | |
tree | f070f232c7f8cf9c28e2cc4f4c0683df8b99bcd0 /include/llvm/ADT/ilist.h | |
parent | f3ea400830f5fffb1037c3fa785bc4677c26dee4 (diff) | |
download | llvm-7309be6735666143bd9835b275dc8501617a2591.tar.gz llvm-7309be6735666143bd9835b275dc8501617a2591.tar.bz2 llvm-7309be6735666143bd9835b275dc8501617a2591.tar.xz |
Remove all the LLVM_COMPACTIFY_SENTINELS-related macro magic as discussed with Chris on IRC. Anybody wanting to debug sentinel dereferencing problems must revert this patch and perform the indicated modifications.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/ilist.h')
-rw-r--r-- | include/llvm/ADT/ilist.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h index a451a184ce..2f35a7ad25 100644 --- a/include/llvm/ADT/ilist.h +++ b/include/llvm/ADT/ilist.h @@ -41,21 +41,6 @@ #include "llvm/ADT/iterator.h" #include <cassert> -#undef LLVM_COMPACTIFY_SENTINELS -/// @brief activate small sentinel structs -/// Comment out if you want better debuggability -/// of ilist<> end() iterators. -/// See also llvm/ADT/ilist_node.h, where the -/// same change must be made. -/// -#define LLVM_COMPACTIFY_SENTINELS 1 - -#if defined(LLVM_COMPACTIFY_SENTINELS) && LLVM_COMPACTIFY_SENTINELS -# define sentinel_tail_assert(COND) -#else -# define sentinel_tail_assert(COND) assert(COND) -#endif - namespace llvm { template<typename NodeTy, typename Traits> class iplist; @@ -204,12 +189,10 @@ public: // Accessors... operator pointer() const { - sentinel_tail_assert(Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"); return NodePtr; } reference operator*() const { - sentinel_tail_assert(Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"); return *NodePtr; } pointer operator->() const { return &operator*(); } @@ -230,7 +213,6 @@ public: } ilist_iterator &operator++() { // preincrement - Advance NodePtr = Traits::getNext(NodePtr); - sentinel_tail_assert(NodePtr && "++'d off the end of an ilist!"); return *this; } ilist_iterator operator--(int) { // postdecrement operators... |