mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 20:06:05 +00:00
[TableGen] Use uint8_t for bit_value_t enum. NFC
This reduces the amount of space needed for vectors of bit_value_t and allows the user of memset. Also reorder the enum values so BIT_FALSE is 0 and BIT_TRUE is 1.
This commit is contained in:
parent
d65719fab3
commit
f2607df291
@ -190,9 +190,9 @@ public:
|
||||
//
|
||||
// BIT_UNFILTERED is used as the init value for a filter position. It is used
|
||||
// only for filter processings.
|
||||
typedef enum {
|
||||
BIT_TRUE, // '1'
|
||||
typedef enum : uint8_t {
|
||||
BIT_FALSE, // '0'
|
||||
BIT_TRUE, // '1'
|
||||
BIT_UNSET, // '?'
|
||||
BIT_UNFILTERED // unfiltered
|
||||
} bit_value_t;
|
||||
|
Loading…
x
Reference in New Issue
Block a user