Remove class that really does nothing.

llvm-svn: 229030
This commit is contained in:
Rui Ueyama 2015-02-13 02:34:08 +00:00
parent 87fdafc7b2
commit dcd61c2d14
4 changed files with 2 additions and 15 deletions

View File

@ -326,16 +326,6 @@ protected:
const ELFLinkingContext &_context;
};
/// \brief Handle linker scripts. TargetLayouts would derive
/// from this class to override some of the functionalities.
template<class ELFT>
class ScriptLayout: public DefaultLayout<ELFT> {
public:
ScriptLayout(const ELFLinkingContext &context)
: DefaultLayout<ELFT>(context)
{}
};
template <class ELFT>
Layout::SectionOrder DefaultLayout<ELFT>::getSectionOrder(
StringRef name, int32_t contentType, int32_t contentPermissions) {

View File

@ -30,7 +30,6 @@ namespace lld {
namespace elf {
template <typename ELFT> class DefaultLayout;
template <typename ELFT> class ScriptLayout;
/// \brief A segment can be divided into segment slices
/// depending on how the segments can be split

View File

@ -16,6 +16,4 @@ lib/ReaderWriter/ELF
- Gnu linkonce sections.
- ScriptLayout
- Fix section flags as they appear in input (update content permissions)

View File

@ -18,10 +18,10 @@ namespace elf {
/// \brief The target can override certain functions in the DefaultLayout
/// class so that the order, the name of the section and the segment type could
/// be changed in the final layout
template <class ELFT> class TargetLayout : public ScriptLayout<ELFT> {
template <class ELFT> class TargetLayout : public DefaultLayout<ELFT> {
public:
TargetLayout(const ELFLinkingContext &context)
: ScriptLayout<ELFT>(context) {}
: DefaultLayout<ELFT>(context) {}
};
} // end namespace elf
} // end namespace lld