From 4b417992dd95060f5815fdfacb08f1c898f85b41 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 21 Mar 2025 23:02:08 -0700 Subject: [CodeGen] Rename PLTRelativeVariantKind. NFC Migrate away from the deprecated MCSymbolRefExpr::VariantKind. The name "Specifier" is utilized in a few *MCExpr. > "Relocation specifier" is clear, aligns with Arm and IBM AIX's documentation, and fits the assembler's role seamlessly. --- llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp') diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 00e4533559c2..27a70e6f775b 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -1189,7 +1189,7 @@ const MCExpr *TargetLoweringObjectFileELF::lowerRelativeReference( return nullptr; return MCBinaryExpr::createSub( - MCSymbolRefExpr::create(TM.getSymbol(LHS), PLTRelativeVariantKind, + MCSymbolRefExpr::create(TM.getSymbol(LHS), PLTRelativeSpecifier, getContext()), MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); } @@ -1204,7 +1204,7 @@ const MCExpr *TargetLoweringObjectFileELF::lowerDSOLocalEquivalent( if (GV->isDSOLocal() || GV->isImplicitDSOLocal()) return MCSymbolRefExpr::create(TM.getSymbol(GV), getContext()); - return MCSymbolRefExpr::create(TM.getSymbol(GV), PLTRelativeVariantKind, + return MCSymbolRefExpr::create(TM.getSymbol(GV), PLTRelativeSpecifier, getContext()); } -- cgit v1.2.3