mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[C++11] Expand and eliminate the LLVM_ENUM_INT_TYPE() macro
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202607 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -651,7 +651,7 @@ enum {
|
||||
};
|
||||
|
||||
// ARM Specific e_flags
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
enum : unsigned {
|
||||
EF_ARM_SOFT_FLOAT = 0x00000200U,
|
||||
EF_ARM_VFP_FLOAT = 0x00000400U,
|
||||
EF_ARM_EABI_UNKNOWN = 0x00000000U,
|
||||
@@ -801,7 +801,7 @@ enum {
|
||||
};
|
||||
|
||||
// Mips Specific e_flags
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
enum : unsigned {
|
||||
EF_MIPS_NOREORDER = 0x00000001, // Don't reorder instructions
|
||||
EF_MIPS_PIC = 0x00000002, // Position independent code
|
||||
EF_MIPS_CPIC = 0x00000004, // Call object with Position independent code
|
||||
@@ -1222,7 +1222,7 @@ enum {
|
||||
};
|
||||
|
||||
// Section types.
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
enum : unsigned {
|
||||
SHT_NULL = 0, // No associated section (inactive entry).
|
||||
SHT_PROGBITS = 1, // Program-defined contents.
|
||||
SHT_SYMTAB = 2, // Symbol table.
|
||||
@@ -1270,7 +1270,7 @@ enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
};
|
||||
|
||||
// Section flags.
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
enum : unsigned {
|
||||
// Section data should be writable during execution.
|
||||
SHF_WRITE = 0x1,
|
||||
|
||||
@@ -1362,7 +1362,7 @@ enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
};
|
||||
|
||||
// Section Group Flags
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
enum : unsigned {
|
||||
GRP_COMDAT = 0x1,
|
||||
GRP_MASKOS = 0x0ff00000,
|
||||
GRP_MASKPROC = 0xf0000000
|
||||
@@ -1584,7 +1584,7 @@ enum {
|
||||
};
|
||||
|
||||
// Segment flag bits.
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
enum : unsigned {
|
||||
PF_X = 1, // Execute
|
||||
PF_W = 2, // Write
|
||||
PF_R = 4, // Read
|
||||
|
Reference in New Issue
Block a user