blob: a29dfd890f8b36df8aad749e7fc169eb6023ab0f [file] [log] [blame]
//===- PLT.cpp ------------------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <mcld/Target/PLT.h>
using namespace mcld;
class GOT;
//===--------------------------------------------------------------------===//
// PLTEntry
PLTEntry::PLTEntry(size_t pSize, llvm::MCSectionData* pParent)
: MCTargetFragment(llvm::MCFragment::FT_Target, pParent),
m_EntrySize(pSize), m_pContent(NULL)
{
}
PLTEntry::~PLTEntry()
{
if (m_pContent) {
free(m_pContent);
m_pContent = NULL;
}
}
//===--------------------------------------------------------------------===//
// PLT
PLT::PLT(LDSection& pSection, llvm::MCSectionData& pSectionData)
:m_Section(pSection),
m_SectionData(pSectionData)
{
}
PLT::~PLT()
{
}