blob: 1ec9c13c8a15be7eb410b67a0e2bb3432a53a519 [file] [log] [blame]
//===- LDSection.cpp ------------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <mcld/LD/LDSection.h>
#include <llvm/MC/SectionKind.h>
using namespace mcld;
LDSection::LDSection(const std::string& pName,
LDFileFormat::Kind pKind,
uint32_t pType,
uint32_t pFlag,
uint64_t pSize,
uint64_t pOffset,
uint64_t pAddr)
: llvm::MCSection(llvm::MCSection::SV_LDContext, llvm::SectionKind::getMetadata()),
m_Name(pName),
m_Kind(pKind),
m_Type(pType),
m_Flag(pFlag),
m_Size(pSize),
m_Offset(pOffset),
m_Addr(pAddr),
m_Align(0),
m_Info(0),
m_pLink(NULL),
m_pSectionData(NULL),
m_Index(0) {
}