Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 20, 2019. It is now read-only.

Commit 384caa9

Browse files
committed
Build LLVM Windows x64 using CMake + VS2015 or VS2017.
1 parent 0b3cb8a commit 384caa9

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

include/llvm/CodeGen/PBQP/CostAllocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

include/llvm/CodeGen/PBQP/Math.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class Vector {
138138

139139
class VectorComparator {
140140
public:
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

387387
class MatrixComparator {
388388
public:
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)

include/llvm/Support/Compiler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
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
@@ -117,7 +117,7 @@
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

tools/llvm-readobj/Error.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tools/obj2yaml/Error.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2525
std::string _obj2yaml_error_category::message(int ev) const {
2626
switch (static_cast<obj2yaml_error>(ev)) {

0 commit comments

Comments
 (0)