mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-20 03:17:48 +00:00
Size enum so we can store it as 16-bits and avoid casts. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -159,7 +159,7 @@ public:
|
|||||||
/// of the symbol as external.
|
/// of the symbol as external.
|
||||||
class MCSymbolRefExpr : public MCExpr {
|
class MCSymbolRefExpr : public MCExpr {
|
||||||
public:
|
public:
|
||||||
enum VariantKind {
|
enum VariantKind : uint16_t {
|
||||||
VK_None,
|
VK_None,
|
||||||
VK_Invalid,
|
VK_Invalid,
|
||||||
|
|
||||||
@@ -295,7 +295,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
/// The symbol reference modifier.
|
/// The symbol reference modifier.
|
||||||
const unsigned Kind : 16;
|
const VariantKind Kind;
|
||||||
|
|
||||||
/// Specifies how the variant kind should be printed.
|
/// Specifies how the variant kind should be printed.
|
||||||
const unsigned UseParensForSymbolVariant : 1;
|
const unsigned UseParensForSymbolVariant : 1;
|
||||||
@@ -328,7 +328,7 @@ public:
|
|||||||
|
|
||||||
const MCSymbol &getSymbol() const { return *Symbol; }
|
const MCSymbol &getSymbol() const { return *Symbol; }
|
||||||
|
|
||||||
VariantKind getKind() const { return static_cast<VariantKind>(Kind); }
|
VariantKind getKind() const { return Kind; }
|
||||||
|
|
||||||
void printVariantKind(raw_ostream &OS) const;
|
void printVariantKind(raw_ostream &OS) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user