This repository was archived by the owner on Dec 20, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ class CostPool {
8787 !std::is_same<PoolEntry*,
8888 typename std::remove_const<CostKeyT>::type>::value,
8989 bool >::type
90- operator ()(const PoolEntry* a, const CostKeyT &b) {
90+ operator ()(const PoolEntry* a, const CostKeyT &b) const {
9191 return compare (a->getCost (), b);
9292 }
93- bool operator ()(const PoolEntry* a, const PoolEntry* b) {
93+ bool operator ()(const PoolEntry* a, const PoolEntry* b) const {
9494 return compare (a->getCost (), b->getCost ());
9595 }
9696 private:
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ class Vector {
138138
139139class VectorComparator {
140140public:
141- bool operator ()(const Vector &A, const Vector &B) {
141+ bool operator ()(const Vector &A, const Vector &B) const {
142142 if (A.Length < B.Length )
143143 return true ;
144144 if (B.Length < A.Length )
@@ -386,7 +386,7 @@ class Matrix {
386386
387387class MatrixComparator {
388388public:
389- bool operator ()(const Matrix &A, const Matrix &B) {
389+ bool operator ()(const Matrix &A, const Matrix &B) const {
390390 if (A.Rows < B.Rows )
391391 return true ;
392392 if (B.Rows < A.Rows )
Original file line number Diff line number Diff line change 6161#define LLVM_MSC_PREREQ (version ) 0
6262#endif
6363
64- #ifndef _MSC_VER
64+ #if !defined( _MSC_VER) || (defined(_MSC_VER) && _MSC_VER >= 1910)
6565#define LLVM_NOEXCEPT noexcept
6666#else
6767#define LLVM_NOEXCEPT
117117#define LLVM_DELETED_FUNCTION
118118#endif
119119
120- #if __has_feature(cxx_constexpr) || defined(__GXX_EXPERIMENTAL_CXX0X__)
120+ #if __has_feature(cxx_constexpr) || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(_MSC_VER) && _MSC_VER >= 1900)
121121# define LLVM_CONSTEXPR constexpr
122122#else
123123# define LLVM_CONSTEXPR
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class _readobj_error_category : public std::error_category {
2424};
2525} // namespace
2626
27- const char *_readobj_error_category::name () const {
27+ const char *_readobj_error_category::name () const LLVM_NOEXCEPT {
2828 return " llvm.readobj" ;
2929}
3030
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class _obj2yaml_error_category : public std::error_category {
2020};
2121} // namespace
2222
23- const char *_obj2yaml_error_category::name () const { return " obj2yaml" ; }
23+ const char *_obj2yaml_error_category::name () const LLVM_NOEXCEPT { return " obj2yaml" ; }
2424
2525std::string _obj2yaml_error_category::message (int ev) const {
2626 switch (static_cast <obj2yaml_error>(ev)) {
You can’t perform that action at this time.
0 commit comments