mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
1e72a9c7fd
Reviewers: mehdi_amini, dexonsmith, dblaikie, davide, chandlerc, davidxl, echristo, efriedma Reviewed By: dblaikie Subscribers: rsmith, mgorny, emaste, llvm-commits Differential Revision: https://reviews.llvm.org/D35043 llvm-svn: 311730
20 lines
360 B
C++
20 lines
360 B
C++
#ifndef LLVM_SUPPORT_REVERSEITERATION_H
|
|
#define LLVM_SUPPORT_REVERSEITERATION_H
|
|
|
|
#include "llvm/Config/abi-breaking.h"
|
|
#include "llvm/Support/PointerLikeTypeTraits.h"
|
|
|
|
namespace llvm {
|
|
|
|
template<class T = void *>
|
|
bool shouldReverseIterate() {
|
|
#if LLVM_ENABLE_REVERSE_ITERATION
|
|
return detail::IsPointerLike<T>::value;
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|
|
|
|
}
|
|
#endif
|