HexagonGOT.h revision 533eae20118036f425f27bf0536ef0ccbb090b65
1//===- HexagonGOT.h -------------------------------------------------------===//
2//
3//                     The MCLinker Project
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9#ifndef TARGET_HEXAGON_HEXAGONGOT_H
10#define TARGET_HEXAGON_HEXAGONGOT_H
11
12#include <mcld/Target/GOT.h>
13
14namespace mcld {
15
16class LDSection;
17class SectionData;
18
19/** \class HexagonGOTEntry
20 *  \brief GOT Entry with size of 4 bytes
21 */
22class HexagonGOTEntry : public GOT::Entry<4>
23{
24public:
25  HexagonGOTEntry(uint64_t pContent, SectionData* pParent)
26   : GOT::Entry<4>(pContent, pParent)
27  {}
28};
29
30/** \class HexagonGOT
31 *  \brief Hexagon Global Offset Table.
32 */
33
34class HexagonGOT : public GOT
35{
36public:
37  HexagonGOT(LDSection& pSection);
38
39  ~HexagonGOT();
40
41  HexagonGOTEntry* create();
42};
43
44} // namespace of mcld
45
46#endif
47
48