summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/DefaultTargetHandler.h
blob: 16668f2df618205f2a5b362968cc9b54fad612ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//===- lib/ReaderWriter/ELF/DefaultTargetHandler.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_DEFAULT_TARGET_HANDLER_H
#define LLD_READER_WRITER_ELF_DEFAULT_TARGET_HANDLER_H

#include "DefaultLayout.h"
#include "DynamicLibraryWriter.h"
#include "ELFReader.h"
#include "ExecutableWriter.h"
#include "TargetHandler.h"
#include "lld/ReaderWriter/ELFLinkingContext.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/ELF.h"

namespace lld {
namespace elf {
template <class ELFT>
class DefaultTargetHandler : public TargetHandler<ELFT> {
public:
  const TargetRelocationHandler &getRelocationHandler() const = 0;

  virtual std::unique_ptr<Reader> getObjReader() = 0;

  virtual std::unique_ptr<Reader> getDSOReader() = 0;

  virtual std::unique_ptr<Writer> getWriter() = 0;
};

} // end namespace elf
} // end namespace lld
#endif
OpenPOWER on IntegriCloud