Files
clang-p2996/lld/lib/ReaderWriter/ELF/TargetLayout.h
Shankar Easwaran ac23808619 [ELF] Add Readers for all the ELF subtargets.
This would permit the ELF reader to check the architecture that is being
selected by the linking process.

This patch also sorts the include files according to LLVM conventions.

llvm-svn: 220129
2014-10-18 05:23:17 +00:00

30 lines
926 B
C++

//===- lib/ReaderWriter/ELF/TargetLayout.h --------------------------------===//
//
// 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
#include "DefaultLayout.h"
#include "lld/Core/LLVM.h"
namespace lld {
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> {
public:
TargetLayout(const ELFLinkingContext &context)
: ScriptLayout<ELFT>(context) {}
};
} // end namespace elf
} // end namespace lld
#endif