diff options
4 files changed, 3 insertions, 16 deletions
diff --git a/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp b/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp index d186239d967..c55dbaf2b4a 100644 --- a/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp @@ -76,11 +76,7 @@ public: class AArch64PLT0Atom : public PLT0Atom { public: - AArch64PLT0Atom(const File &f) : PLT0Atom(f) { -#ifndef NDEBUG - _name = ".PLT0"; -#endif - } + AArch64PLT0Atom(const File &f) : PLT0Atom(f) {} ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(AArch64Plt0AtomContent, 32); } diff --git a/lld/lib/ReaderWriter/ELF/Atoms.h b/lld/lib/ReaderWriter/ELF/Atoms.h index 21e08910b16..6f10865e4ec 100644 --- a/lld/lib/ReaderWriter/ELF/Atoms.h +++ b/lld/lib/ReaderWriter/ELF/Atoms.h @@ -797,7 +797,6 @@ public: }; class PLT0Atom : public PLTAtom { - public: PLT0Atom(const File &f) : PLTAtom(f, ".plt") { #ifndef NDEBUG diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp index 56555c21855..9b10c2f160f 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp +++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp @@ -104,11 +104,7 @@ public: class HexagonPLT0Atom : public PLT0Atom { public: - HexagonPLT0Atom(const File &f) : PLT0Atom(f) { -#ifndef NDEBUG - _name = ".PLT0"; -#endif - } + HexagonPLT0Atom(const File &f) : PLT0Atom(f) {} ArrayRef<uint8_t> rawContent() const override { return makeArrayRef(hexagonPlt0AtomContent); diff --git a/lld/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp b/lld/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp index 85b8bc6ee5f..9c8a44edd0d 100644 --- a/lld/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp @@ -76,11 +76,7 @@ public: class X86_64PLT0Atom : public PLT0Atom { public: - X86_64PLT0Atom(const File &f) : PLT0Atom(f) { -#ifndef NDEBUG - _name = ".PLT0"; -#endif - } + X86_64PLT0Atom(const File &f) : PLT0Atom(f) {} ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(x86_64Plt0AtomContent, 16); } |