Skip to content

Commit ae618d3

Browse files
committed
[MC] Remove unused getMemtagRelocsSection
Follow-up to fec1b6f
1 parent b799cc3 commit ae618d3

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

llvm/include/llvm/MC/MCELFObjectWriter.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,6 @@ class MCELFObjectTargetWriter : public MCObjectTargetWriter {
137137
unsigned setRSsym(unsigned Value, unsigned Type) const {
138138
return (Type & R_SSYM_MASK) | ((Value & 0xff) << R_SSYM_SHIFT);
139139
}
140-
141-
// On AArch64, return a new section to be added to the ELF object that
142-
// contains relocations used to describe every symbol that should have memory
143-
// tags applied. Returns nullptr if no such section is necessary (i.e. there's
144-
// no tagged globals).
145-
virtual MCSectionELF *getMemtagRelocsSection(MCContext &Ctx) const {
146-
return nullptr;
147-
}
148140
};
149141

150142
class ELFObjectWriter final : public MCObjectWriter {

llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ class AArch64ELFObjectWriter : public MCELFObjectTargetWriter {
3434

3535
~AArch64ELFObjectWriter() override = default;
3636

37-
MCSectionELF *getMemtagRelocsSection(MCContext &Ctx) const override;
38-
3937
protected:
4038
unsigned getRelocType(MCContext &Ctx, const MCValue &Target,
4139
const MCFixup &Fixup, bool IsPCRel) const override;
@@ -462,12 +460,6 @@ bool AArch64ELFObjectWriter::needsRelocateWithSymbol(const MCValue &Val,
462460
return (Val.getRefKind() & AArch64MCExpr::VK_GOT) == AArch64MCExpr::VK_GOT;
463461
}
464462

465-
MCSectionELF *
466-
AArch64ELFObjectWriter::getMemtagRelocsSection(MCContext &Ctx) const {
467-
return Ctx.getELFSection(".memtag.globals.static",
468-
ELF::SHT_AARCH64_MEMTAG_GLOBALS_STATIC, 0);
469-
}
470-
471463
std::unique_ptr<MCObjectTargetWriter>
472464
llvm::createAArch64ELFObjectWriter(uint8_t OSABI, bool IsILP32) {
473465
return std::make_unique<AArch64ELFObjectWriter>(OSABI, IsILP32);

0 commit comments

Comments
 (0)