1 //===- lib/ReaderWriter/ELF/TargetLayout.h --------------------------------===//
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLD_READER_WRITER_ELF_TARGET_LAYOUT_H
11 #define LLD_READER_WRITER_ELF_TARGET_LAYOUT_H
13 #include "DefaultLayout.h"
14 #include "lld/Core/LLVM.h"
18 /// \brief The target can override certain functions in the DefaultLayout
19 /// class so that the order, the name of the section and the segment type could
20 /// be changed in the final layout
21 template <class ELFT> class TargetLayout : public DefaultLayout<ELFT> {
23 TargetLayout(ELFLinkingContext &context) : DefaultLayout<ELFT>(context) {}
25 } // end namespace elf
26 } // end namespace lld