forked from OSchip/llvm-project
ELF: Fix header file dependencies.
<Arch>TargetHandler.h and <ArcH>RelocationHandler.h include each other. This patch breaks the circular dependencies. llvm-svn: 234050
This commit is contained in:
parent
43bac098b0
commit
3fbed259b6
|
@ -10,14 +10,12 @@
|
|||
#ifndef AARCH64_RELOCATION_HANDLER_H
|
||||
#define AARCH64_RELOCATION_HANDLER_H
|
||||
|
||||
#include "AArch64TargetHandler.h"
|
||||
#include "lld/ReaderWriter/ELFLinkingContext.h"
|
||||
|
||||
namespace lld {
|
||||
namespace elf {
|
||||
typedef llvm::object::ELFType<llvm::support::little, 2, true> AArch64ELFType;
|
||||
|
||||
template <class ELFT> class AArch64TargetLayout;
|
||||
|
||||
class AArch64TargetRelocationHandler final : public TargetRelocationHandler {
|
||||
public:
|
||||
std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
|
||||
|
|
|
@ -10,10 +10,11 @@
|
|||
#ifndef LLD_READER_WRITER_ELF_ARM_ARM_RELOCATION_HANDLER_H
|
||||
#define LLD_READER_WRITER_ELF_ARM_ARM_RELOCATION_HANDLER_H
|
||||
|
||||
#include "ARMTargetHandler.h"
|
||||
#include "lld/ReaderWriter/ELFLinkingContext.h"
|
||||
|
||||
namespace lld {
|
||||
namespace elf {
|
||||
|
||||
typedef llvm::object::ELFType<llvm::support::little, 2, false> ARMELFType;
|
||||
|
||||
template <class ELFT> class ARMTargetLayout;
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
|
||||
#include "HexagonLinkingContext.h"
|
||||
#include "HexagonRelocationFunctions.h"
|
||||
#include "HexagonTargetHandler.h"
|
||||
#include "HexagonRelocationHandler.h"
|
||||
#include "HexagonTargetHandler.h"
|
||||
#include "lld/ReaderWriter/RelocationHelperFunctions.h"
|
||||
#include "llvm/Support/Endian.h"
|
||||
|
||||
using namespace lld;
|
||||
|
|
|
@ -9,14 +9,14 @@
|
|||
#ifndef LLD_READER_WRITER_ELF_HEXAGON_HEXAGON_RELOCATION_HANDLER_H
|
||||
#define LLD_READER_WRITER_ELF_HEXAGON_HEXAGON_RELOCATION_HANDLER_H
|
||||
|
||||
#include "HexagonSectionChunks.h"
|
||||
#include "HexagonTargetHandler.h"
|
||||
#include "lld/ReaderWriter/RelocationHelperFunctions.h"
|
||||
#include "lld/ReaderWriter/ELFLinkingContext.h"
|
||||
|
||||
namespace lld {
|
||||
namespace elf {
|
||||
|
||||
class HexagonTargetHandler;
|
||||
template <class ELFT> class HexagonTargetLayout;
|
||||
|
||||
typedef llvm::object::ELFType<llvm::support::little, 2, false> HexagonELFType;
|
||||
|
||||
class HexagonTargetRelocationHandler final : public TargetRelocationHandler {
|
||||
public:
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#ifndef X86_X86_RELOCATION_HANDLER_H
|
||||
#define X86_X86_RELOCATION_HANDLER_H
|
||||
|
||||
#include "X86TargetHandler.h"
|
||||
#include "lld/ReaderWriter/ELFLinkingContext.h"
|
||||
|
||||
namespace lld {
|
||||
namespace elf {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#ifndef X86_64_RELOCATION_HANDLER_H
|
||||
#define X86_64_RELOCATION_HANDLER_H
|
||||
|
||||
#include "X86_64TargetHandler.h"
|
||||
#include "lld/ReaderWriter/ELFLinkingContext.h"
|
||||
|
||||
namespace lld {
|
||||
namespace elf {
|
||||
|
|
Loading…
Reference in New Issue