mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Explicitly request unsigned enum types when desired
This fixes repeated -Wmicrosoft warnings when self-hosting clang on Windows, and gets us real unsigned enum types with MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192227 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -248,7 +248,7 @@ namespace llvm {
|
|||||||
/// SUnit - Scheduling unit. This is a node in the scheduling DAG.
|
/// SUnit - Scheduling unit. This is a node in the scheduling DAG.
|
||||||
class SUnit {
|
class SUnit {
|
||||||
private:
|
private:
|
||||||
enum { BoundaryID = ~0u };
|
enum LLVM_ENUM_INT_TYPE(unsigned) { BoundaryID = ~0u };
|
||||||
|
|
||||||
SDNode *Node; // Representative node.
|
SDNode *Node; // Representative node.
|
||||||
MachineInstr *Instr; // Alternatively, a MachineInstr.
|
MachineInstr *Instr; // Alternatively, a MachineInstr.
|
||||||
|
@@ -144,7 +144,7 @@ namespace {
|
|||||||
// not be erased.
|
// not be erased.
|
||||||
bool isBulkSpilling;
|
bool isBulkSpilling;
|
||||||
|
|
||||||
enum {
|
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||||
spillClean = 1,
|
spillClean = 1,
|
||||||
spillDirty = 100,
|
spillDirty = 100,
|
||||||
spillImpossible = ~0u
|
spillImpossible = ~0u
|
||||||
|
@@ -222,7 +222,7 @@ class RAGreedy : public MachineFunctionPass,
|
|||||||
/// class.
|
/// class.
|
||||||
SmallVector<GlobalSplitCandidate, 32> GlobalCand;
|
SmallVector<GlobalSplitCandidate, 32> GlobalCand;
|
||||||
|
|
||||||
enum { NoCand = ~0u };
|
enum LLVM_ENUM_INT_TYPE(unsigned) { NoCand = ~0u };
|
||||||
|
|
||||||
/// Candidate map. Each edge bundle is assigned to a GlobalCand entry, or to
|
/// Candidate map. Each edge bundle is assigned to a GlobalCand entry, or to
|
||||||
/// NoCand which indicates the stack interval.
|
/// NoCand which indicates the stack interval.
|
||||||
|
Reference in New Issue
Block a user