[lld] r231570 - Remove duplicate code. NFC.
Rui Ueyama
ruiu at google.com
Sat Mar 7 08:49:15 PST 2015
Author: ruiu
Date: Sat Mar 7 10:49:14 2015
New Revision: 231570
URL: http://llvm.org/viewvc/llvm-project?rev=231570&view=rev
Log:
Remove duplicate code. NFC.
Modified:
lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp
lld/trunk/lib/ReaderWriter/ELF/Atoms.h
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp?rev=231570&r1=231569&r2=231570&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp Sat Mar 7 10:49:14 2015
@@ -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);
}
Modified: lld/trunk/lib/ReaderWriter/ELF/Atoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Atoms.h?rev=231570&r1=231569&r2=231570&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Atoms.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Atoms.h Sat Mar 7 10:49:14 2015
@@ -797,7 +797,6 @@ public:
};
class PLT0Atom : public PLTAtom {
-
public:
PLT0Atom(const File &f) : PLTAtom(f, ".plt") {
#ifndef NDEBUG
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp?rev=231570&r1=231569&r2=231570&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp Sat Mar 7 10:49:14 2015
@@ -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);
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp?rev=231570&r1=231569&r2=231570&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp Sat Mar 7 10:49:14 2015
@@ -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);
}
More information about the llvm-commits
mailing list