summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/GOTPass.hpp
blob: f66d6a76de8afc3925d49b77abda708dc9a5348f (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
39
40
41
42
43
44
45
46
47
48
49
50
51
//===- lib/ReaderWriter/MachO/GOTPass.hpp ---------------------------------===//
//
//                             The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLD_READER_WRITER_MACHO_GOT_PASS_H
#define LLD_READER_WRITER_MACHO_GOT_PASS_H

#include "lld/Core/DefinedAtom.h"
#include "lld/Core/SharedLibraryAtom.h"
#include "lld/Core/File.h"
#include "lld/Core/Reference.h"
#include "lld/Core/Pass.h"

#include "ReferenceKinds.h"
#include "StubAtoms.hpp"

namespace lld {
namespace mach_o {


class GOTPass : public lld::GOTPass {
public:
  bool noTextRelocs() override {
    return true;
  }

  bool isGOTAccess(const Reference &, bool &canBypassGOT) override {
    return false;
  }

  void updateReferenceToGOT(const Reference*, bool targetIsNowGOT) override {

  }

  const DefinedAtom* makeGOTEntry(const Atom&) override {
    return nullptr;
  }

};


} // namespace mach_o
} // namespace lld


#endif // LLD_READER_WRITER_MACHO_GOT_PASS_H
OpenPOWER on IntegriCloud