1//===- impl.cpp -----------------------------------------------------------===//
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#include "X86GOT.h"
10
11#include <mcld/LD/LDFileFormat.h>
12#include <mcld/LD/SectionData.h>
13
14#include <llvm/Support/Casting.h>
15
16using namespace mcld;
17
18//===----------------------------------------------------------------------===//
19// X86_32GOT
20//===----------------------------------------------------------------------===//
21X86_32GOT::X86_32GOT(LDSection& pSection)
22  : GOT(pSection)
23{
24}
25
26X86_32GOT::~X86_32GOT()
27{
28}
29
30X86_32GOTEntry* X86_32GOT::create()
31{
32  return new X86_32GOTEntry(0, m_SectionData);
33}
34
35//===----------------------------------------------------------------------===//
36// X86_64GOT
37//===----------------------------------------------------------------------===//
38X86_64GOT::X86_64GOT(LDSection& pSection)
39  : GOT(pSection)
40{
41}
42
43X86_64GOT::~X86_64GOT()
44{
45}
46
47X86_64GOTEntry* X86_64GOT::create()
48{
49  return new X86_64GOTEntry(0, m_SectionData);
50}
51
52