Mercurial > hg > CbC > CbC_llvm
annotate include/llvm/Support/ReverseIteration.h @ 134:3a76565eade5 LLVM5.0.1
update 5.0.1
author | mir3636 |
---|---|
date | Sat, 17 Feb 2018 09:57:20 +0900 |
parents | 803732b1fca8 |
children |
rev | line source |
---|---|
121 | 1 #ifndef LLVM_SUPPORT_REVERSEITERATION_H |
2 #define LLVM_SUPPORT_REVERSEITERATION_H | |
3 | |
4 #include "llvm/Config/abi-breaking.h" | |
5 #include "llvm/Support/PointerLikeTypeTraits.h" | |
6 | |
7 namespace llvm { | |
8 | |
9 template<class T = void *> | |
10 bool shouldReverseIterate() { | |
11 #if LLVM_ENABLE_REVERSE_ITERATION | |
12 return detail::IsPointerLike<T>::value; | |
13 #else | |
14 return false; | |
15 #endif | |
16 } | |
17 | |
18 } | |
19 #endif |