]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/ReaderWriter/ELF/TargetLayout.h
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / lib / ReaderWriter / ELF / TargetLayout.h
1 //===- lib/ReaderWriter/ELF/TargetLayout.h --------------------------------===//
2 //
3 //                             The LLVM Linker
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLD_READER_WRITER_ELF_TARGET_LAYOUT_H
11 #define LLD_READER_WRITER_ELF_TARGET_LAYOUT_H
12
13 #include "DefaultLayout.h"
14 #include "lld/Core/LLVM.h"
15
16 namespace lld {
17 namespace elf {
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> {
22 public:
23   TargetLayout(ELFLinkingContext &context) : DefaultLayout<ELFT>(context) {}
24 };
25 } // end namespace elf
26 } // end namespace lld
27
28 #endif