Skip to content

Commit 441c9a9

Browse files
committed
[MC] Delete deprecated fixELFSymbolsInTLSFixups
In-tree targets have been updated to set STT_TLS in derived MCELFObjectTargetWriter::getRelocType functions.
1 parent 912579f commit 441c9a9

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

llvm/include/llvm/MC/MCExpr.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,6 @@ class MCTargetExpr : public MCExpr {
538538
virtual void visitUsedExpr(MCStreamer& Streamer) const = 0;
539539
virtual MCFragment *findAssociatedFragment() const = 0;
540540

541-
// Deprecated way to set the type of referenced ELF symbols to STT_TLS when
542-
// the derived MCELFObjectTargetWriter::getRelocType does not update symbols.
543-
virtual void fixELFSymbolsInTLSFixups(MCAssembler &) const {}
544-
545541
static bool classof(const MCExpr *E) {
546542
return E->getKind() == MCExpr::Target;
547543
}

llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCExpr.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,6 @@ static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) {
9696
}
9797
}
9898

99-
void CSKYMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const {
100-
switch (getSpecifier()) {
101-
default:
102-
return;
103-
case VK_TLSLE:
104-
case VK_TLSIE:
105-
case VK_TLSGD:
106-
break;
107-
}
108-
109-
fixELFSymbolsInTLSFixupsImpl(getSubExpr(), Asm);
110-
}
111-
11299
bool CSKYMCExpr::evaluateAsRelocatableImpl(MCValue &Res,
113100
const MCAssembler *Asm) const {
114101
if (!getSubExpr()->evaluateAsRelocatable(Res, Asm))

llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCExpr.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ class CSKYMCExpr : public MCTargetExpr {
6464
return getSubExpr()->findAssociatedFragment();
6565
}
6666

67-
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override;
68-
6967
static bool classof(const MCExpr *E) {
7068
return E->getKind() == MCExpr::Target;
7169
}

0 commit comments

Comments
 (0)