aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-03-21 23:02:08 -0700
committerFangrui Song <i@maskray.me>2025-03-21 23:02:08 -0700
commit4b417992dd95060f5815fdfacb08f1c898f85b41 (patch)
tree3a1fbf56708b7c2dc37304864138995c6d198dbf /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentdad7f799b4b7ad85472cebf7e0b433e8067894ae (diff)
downloadllvm-4b417992dd95060f5815fdfacb08f1c898f85b41.zip
llvm-4b417992dd95060f5815fdfacb08f1c898f85b41.tar.gz
llvm-4b417992dd95060f5815fdfacb08f1c898f85b41.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 00e4533..27a70e6 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());
}