[lld] r356239 - [ELF] Delete unused forward declarations and unused DynamicReloc::getInputSec(). NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 00:16:39 PDT 2019
Author: maskray
Date: Fri Mar 15 00:16:39 2019
New Revision: 356239
URL: http://llvm.org/viewvc/llvm-project?rev=356239&view=rev
Log:
[ELF] Delete unused forward declarations and unused DynamicReloc::getInputSec(). NFC
Modified:
lld/trunk/ELF/OutputSections.h
lld/trunk/ELF/Symbols.h
lld/trunk/ELF/SyntheticSections.h
lld/trunk/ELF/Writer.h
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=356239&r1=356238&r2=356239&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Fri Mar 15 00:16:39 2019
@@ -22,17 +22,8 @@ namespace lld {
namespace elf {
struct PhdrEntry;
-class Symbol;
-struct EhSectionPiece;
-class EhInputSection;
class InputSection;
class InputSectionBase;
-class MergeInputSection;
-class OutputSection;
-template <class ELFT> class ObjFile;
-template <class ELFT> class SharedFile;
-class SharedSymbol;
-class Defined;
// This represents a section in an output file.
// It is composed of multiple InputSections.
Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=356239&r1=356238&r2=356239&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Fri Mar 15 00:16:39 2019
@@ -30,13 +30,6 @@ std::string toString(const elf::InputFil
namespace elf {
-class ArchiveFile;
-class BitcodeFile;
-class BssSection;
-class InputFile;
-class LazyObjFile;
-template <class ELFT> class ObjFile;
-class OutputSection;
template <class ELFT> class SharedFile;
// This is a StringRef-like container that doesn't run strlen().
Modified: lld/trunk/ELF/SyntheticSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.h?rev=356239&r1=356238&r2=356239&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.h (original)
+++ lld/trunk/ELF/SyntheticSections.h Fri Mar 15 00:16:39 2019
@@ -31,7 +31,6 @@
namespace lld {
namespace elf {
class Defined;
-class SharedSymbol;
class SyntheticSection : public InputSection {
public:
@@ -418,7 +417,6 @@ public:
uint64_t getOffset() const;
uint32_t getSymIndex() const;
- const InputSectionBase *getInputSec() const { return InputSec; }
// Computes the addend of the dynamic relocation. Note that this is not the
// same as the Addend member variable as it also includes the symbol address
Modified: lld/trunk/ELF/Writer.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.h?rev=356239&r1=356238&r2=356239&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.h (original)
+++ lld/trunk/ELF/Writer.h Fri Mar 15 00:16:39 2019
@@ -19,8 +19,6 @@ namespace elf {
class InputFile;
class OutputSection;
class InputSectionBase;
-template <class ELFT> class ObjFile;
-class SymbolTable;
template <class ELFT> void writeResult();
// This describes a program header entry.
More information about the llvm-commits
mailing list