]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/Support/ReverseIteration.h
MFC: r326864
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / Support / ReverseIteration.h
1 #ifndef LLVM_SUPPORT_REVERSEITERATION_H
2 #define LLVM_SUPPORT_REVERSEITERATION_H
3
4 #include "llvm/Config/abi-breaking.h"
5
6 namespace llvm {
7 #if LLVM_ENABLE_ABI_BREAKING_CHECKS
8 template <class T = void> struct ReverseIterate { static bool value; };
9 #if LLVM_ENABLE_REVERSE_ITERATION
10 template <class T> bool ReverseIterate<T>::value = true;
11 #else
12 template <class T> bool ReverseIterate<T>::value = false;
13 #endif
14 #endif
15 }
16
17 #endif