2013-01-30 06:03:39 +08:00
|
|
|
//===- lib/ReaderWriter/ELF/TargetLayout.h --------------------------------===//
|
2013-01-30 03:53:41 +08:00
|
|
|
//
|
|
|
|
// The LLVM Linker
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLD_READER_WRITER_ELF_TARGET_LAYOUT_H
|
|
|
|
#define LLD_READER_WRITER_ELF_TARGET_LAYOUT_H
|
|
|
|
|
2013-01-30 06:03:39 +08:00
|
|
|
#include "DefaultLayout.h"
|
2013-01-30 03:53:41 +08:00
|
|
|
|
|
|
|
#include "lld/Core/LLVM.h"
|
|
|
|
|
|
|
|
namespace lld {
|
|
|
|
namespace elf {
|
2013-01-30 06:03:39 +08:00
|
|
|
/// \brief The target can override certain functions in the DefaultLayout
|
2013-01-30 03:53:41 +08:00
|
|
|
/// class so that the order, the name of the section and the segment type could
|
|
|
|
/// be changed in the final layout
|
2013-01-30 06:03:39 +08:00
|
|
|
template <class ELFT> class TargetLayout : public DefaultLayout<ELFT> {
|
2013-01-30 03:53:41 +08:00
|
|
|
public:
|
2013-03-15 00:09:49 +08:00
|
|
|
TargetLayout(const ELFTargetInfo &targetInfo)
|
2013-01-30 15:11:43 +08:00
|
|
|
: DefaultLayout<ELFT>(targetInfo) {}
|
2013-01-30 03:53:41 +08:00
|
|
|
};
|
|
|
|
} // end namespace elf
|
|
|
|
} // end namespace lld
|
|
|
|
|
|
|
|
#endif
|