mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
[IR] Switch static const to an enum to silence MSVC linker warnings
Integral class statics are handled oddly in MSVC, we don't need them in this case, use an enum instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241958 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -104,8 +104,8 @@ protected:
|
|||||||
///
|
///
|
||||||
/// Note, this should *NOT* be used directly by any class other than User.
|
/// Note, this should *NOT* be used directly by any class other than User.
|
||||||
/// User uses this value to find the Use list.
|
/// User uses this value to find the Use list.
|
||||||
static const unsigned NumUserOperandsBits = 29;
|
enum : unsigned { NumUserOperandsBits = 29 };
|
||||||
unsigned NumUserOperands : 29;
|
unsigned NumUserOperands : NumUserOperandsBits;
|
||||||
|
|
||||||
bool IsUsedByMD : 1;
|
bool IsUsedByMD : 1;
|
||||||
bool HasName : 1;
|
bool HasName : 1;
|
||||||
|
@ -39,8 +39,6 @@ using namespace llvm;
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Value Class
|
// Value Class
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
const unsigned Value::NumUserOperandsBits;
|
|
||||||
|
|
||||||
static inline Type *checkType(Type *Ty) {
|
static inline Type *checkType(Type *Ty) {
|
||||||
assert(Ty && "Value defined with a null type: Error!");
|
assert(Ty && "Value defined with a null type: Error!");
|
||||||
return Ty;
|
return Ty;
|
||||||
|
Reference in New Issue
Block a user