LDSection.cpp revision 5460a1f25d9ddecb5c70667267d66d51af177a99
1//===- LDSection.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 <mcld/LD/LDSection.h> 10#include <llvm/MC/SectionKind.h> 11 12using namespace mcld; 13 14LDSection::LDSection(const std::string& pName, 15 LDFileFormat::Kind pKind, 16 uint32_t pType, 17 uint32_t pFlag, 18 uint64_t pSize, 19 uint64_t pOffset, 20 uint64_t pAddr) 21 : llvm::MCSection(llvm::MCSection::SV_LDContext, llvm::SectionKind::getMetadata()), 22 m_Name(pName), 23 m_Kind(pKind), 24 m_Type(pType), 25 m_Flag(pFlag), 26 m_Size(pSize), 27 m_Offset(pOffset), 28 m_Addr(pAddr), 29 m_Align(0), 30 m_Info(0), 31 m_pLink(NULL), 32 m_pSectionData(NULL), 33 m_Index(0) { 34} 35 36