diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-05-21 16:40:18 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-05-21 16:40:18 +0000 |
commit | 33ef88e9bed7357bd473b24cf0d0a3b06a7b3e02 (patch) | |
tree | b9adb09fe70522d298c11d331db0605843072642 /llvm | |
parent | beeacd158671ada5fa81b92a8a838899369b7e6a (diff) | |
download | bcm5719-llvm-33ef88e9bed7357bd473b24cf0d0a3b06a7b3e02.tar.gz bcm5719-llvm-33ef88e9bed7357bd473b24cf0d0a3b06a7b3e02.zip |
Size enum so we can store it as 16-bits and avoid casts. NFC
llvm-svn: 237910
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/MC/MCExpr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/MC/MCExpr.h b/llvm/include/llvm/MC/MCExpr.h index 4b4b9204946..10e66401646 100644 --- a/llvm/include/llvm/MC/MCExpr.h +++ b/llvm/include/llvm/MC/MCExpr.h @@ -159,7 +159,7 @@ public: /// of the symbol as external. class MCSymbolRefExpr : public MCExpr { public: - enum VariantKind { + enum VariantKind : uint16_t { VK_None, VK_Invalid, @@ -295,7 +295,7 @@ public: private: /// The symbol reference modifier. - const unsigned Kind : 16; + const VariantKind Kind; /// Specifies how the variant kind should be printed. const unsigned UseParensForSymbolVariant : 1; @@ -328,7 +328,7 @@ public: 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; |