mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Enable JIT when the platform supports it.
Select /localhome/$USER when it exists. Fix the checks for bidirectional and forward iterators so that they work with version of GCC prior to 3.x. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
|
||||
#include <iterator>
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// If the bidirectional iterator is not defined, attempt to define it using
|
||||
// the C++ standard iterator.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef HAVE_BI_ITERATOR
|
||||
#ifdef HAVE_STD_ITERATOR
|
||||
|
||||
// Define stupid wrappers around std::iterator...
|
||||
@@ -31,16 +36,34 @@ struct bidirectional_iterator
|
||||
: public std::iterator<std::bidirectional_iterator_tag, Ty, PtrDiffTy> {
|
||||
};
|
||||
|
||||
template<class Ty, class PtrDiffTy>
|
||||
struct forward_iterator
|
||||
: public std::iterator<std::forward_iterator_tag, Ty, PtrDiffTy> {
|
||||
};
|
||||
#else
|
||||
#error "Need to have standard iterator to define bidirectional iterator!"
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
// Just use bidirectional_iterator directly.
|
||||
using std::bidirectional_iterator;
|
||||
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// If the forward iterator is not defined, attempt to define it using the
|
||||
// C++ standard iterator.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef HAVE_FWD_ITERATOR
|
||||
#ifdef HAVE_STD_ITERATOR
|
||||
template<class Ty, class PtrDiffTy>
|
||||
struct forward_iterator
|
||||
: public std::iterator<std::forward_iterator_tag, Ty, PtrDiffTy> {
|
||||
};
|
||||
#else
|
||||
#error "Need to have standard iterator to define forward iterator!"
|
||||
#endif
|
||||
#else
|
||||
// Just use forward iterator directly.
|
||||
using std::forward_iterator;
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user