• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
16 namespace mcld {
17 
18 //===----------------------------------------------------------------------===//
19 // X86_32GOT
20 //===----------------------------------------------------------------------===//
X86_32GOT(LDSection & pSection)21 X86_32GOT::X86_32GOT(LDSection& pSection) : GOT(pSection) {
22 }
23 
~X86_32GOT()24 X86_32GOT::~X86_32GOT() {
25 }
26 
create()27 X86_32GOTEntry* X86_32GOT::create() {
28   return new X86_32GOTEntry(0, m_SectionData);
29 }
30 
31 //===----------------------------------------------------------------------===//
32 // X86_64GOT
33 //===----------------------------------------------------------------------===//
X86_64GOT(LDSection & pSection)34 X86_64GOT::X86_64GOT(LDSection& pSection) : GOT(pSection) {
35 }
36 
~X86_64GOT()37 X86_64GOT::~X86_64GOT() {
38 }
39 
create()40 X86_64GOTEntry* X86_64GOT::create() {
41   return new X86_64GOTEntry(0, m_SectionData);
42 }
43 
44 }  // namespace mcld
45