@@ -57,6 +57,7 @@ class MCExpr {
57
57
bool InSet) const ;
58
58
59
59
protected:
60
+ using Spec = uint16_t ;
60
61
explicit MCExpr (ExprKind Kind, SMLoc Loc, unsigned SubclassData = 0 )
61
62
: Kind(Kind), SubclassData(SubclassData), Loc(Loc) {
62
63
assert (SubclassData < (1 << NumSubclassDataBits) &&
@@ -200,7 +201,7 @@ class MCSymbolRefExpr : public MCExpr {
200
201
// / The symbol being referenced.
201
202
const MCSymbol *Symbol;
202
203
203
- explicit MCSymbolRefExpr (const MCSymbol *Symbol, VariantKind Kind ,
204
+ explicit MCSymbolRefExpr (const MCSymbol *Symbol, Spec specifier ,
204
205
const MCAsmInfo *MAI, SMLoc Loc = SMLoc());
205
206
206
207
public:
@@ -213,13 +214,8 @@ class MCSymbolRefExpr : public MCExpr {
213
214
}
214
215
215
216
LLVM_ABI static const MCSymbolRefExpr *create (const MCSymbol *Symbol,
216
- VariantKind Kind,
217
- MCContext &Ctx,
217
+ Spec specifier, MCContext &Ctx,
218
218
SMLoc Loc = SMLoc());
219
- static const MCSymbolRefExpr *create (const MCSymbol *Symbol, uint16_t Kind,
220
- MCContext &Ctx, SMLoc Loc = SMLoc()) {
221
- return MCSymbolRefExpr::create (Symbol, VariantKind (Kind), Ctx, Loc);
222
- }
223
219
224
220
// / @}
225
221
// / \name Accessors
@@ -495,7 +491,6 @@ class LLVM_ABI MCTargetExpr : public MCExpr {
495
491
// / MCExprs are bump pointer allocated and not destructed.
496
492
class LLVM_ABI MCSpecifierExpr : public MCExpr {
497
493
protected:
498
- using Spec = uint16_t ;
499
494
const MCExpr *Expr;
500
495
// Target-specific relocation specifier code
501
496
const Spec specifier;
0 commit comments