diff options
author | Fangrui Song <i@maskray.me> | 2025-06-28 15:48:43 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-06-28 15:48:43 -0700 |
commit | aa8afadd251cf972bace35a674428383089c2697 (patch) | |
tree | 4ba07ae3be3aca24831f8334d6bcffd4b2e27696 /llvm/lib/MC/MCExpr.cpp | |
parent | 2ed04016120f18b35967b8b5a2ed54406a9711fd (diff) | |
download | llvm-aa8afadd251cf972bace35a674428383089c2697.zip llvm-aa8afadd251cf972bace35a674428383089c2697.tar.gz llvm-aa8afadd251cf972bace35a674428383089c2697.tar.bz2 |
MCSymbolRefExpr: Migrate away from deprecated VariantKind
Diffstat (limited to 'llvm/lib/MC/MCExpr.cpp')
-rw-r--r-- | llvm/lib/MC/MCExpr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp index 7603912..79c3ec6 100644 --- a/llvm/lib/MC/MCExpr.cpp +++ b/llvm/lib/MC/MCExpr.cpp @@ -217,16 +217,16 @@ const MCConstantExpr *MCConstantExpr::create(int64_t Value, MCContext &Ctx, /* *** */ -MCSymbolRefExpr::MCSymbolRefExpr(const MCSymbol *Symbol, VariantKind Kind, +MCSymbolRefExpr::MCSymbolRefExpr(const MCSymbol *Symbol, Spec specifier, const MCAsmInfo *MAI, SMLoc Loc) - : MCExpr(MCExpr::SymbolRef, Loc, Kind), Symbol(Symbol) { + : MCExpr(MCExpr::SymbolRef, Loc, specifier), Symbol(Symbol) { assert(Symbol); } const MCSymbolRefExpr *MCSymbolRefExpr::create(const MCSymbol *Sym, - VariantKind Kind, + uint16_t specifier, MCContext &Ctx, SMLoc Loc) { - return new (Ctx) MCSymbolRefExpr(Sym, Kind, Ctx.getAsmInfo(), Loc); + return new (Ctx) MCSymbolRefExpr(Sym, specifier, Ctx.getAsmInfo(), Loc); } /* *** */ |