summaryrefslogtreecommitdiff
path: root/lib/Target/GOT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/GOT.cpp')
-rw-r--r--lib/Target/GOT.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Target/GOT.cpp b/lib/Target/GOT.cpp
index a05b574..f9e7b91 100644
--- a/lib/Target/GOT.cpp
+++ b/lib/Target/GOT.cpp
@@ -6,7 +6,9 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
#include <mcld/Target/GOT.h>
+
#include <cstring>
#include <cstdlib>
@@ -14,9 +16,9 @@ using namespace mcld;
//===----------------------------------------------------------------------===//
// GOTEntry
-GOTEntry::GOTEntry(uint64_t pContent, size_t pEntrySize,
- llvm::MCSectionData* pParent)
- : MCTargetFragment(llvm::MCFragment::FT_Target, pParent),
+//===----------------------------------------------------------------------===//
+GOTEntry::GOTEntry(uint64_t pContent, size_t pEntrySize, SectionData* pParent)
+ : TargetFragment(Fragment::Target, pParent),
f_Content(pContent), m_EntrySize(pEntrySize) {
}
@@ -26,8 +28,9 @@ GOTEntry::~GOTEntry()
//===----------------------------------------------------------------------===//
// GOT
+//===----------------------------------------------------------------------===//
GOT::GOT(LDSection& pSection,
- llvm::MCSectionData& pSectionData,
+ SectionData& pSectionData,
size_t pEntrySize)
: m_Section(pSection),
m_SectionData(pSectionData),