1 //===- SectLinkerOption.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/CodeGen/SectLinkerOption.h" 10 #include "mcld/Support/DerivedPositionDependentOptions.h" 11 #include "mcld/Support/RealPath.h" 12 13 using namespace mcld; 14 15 //===----------------------------------------------------------------------===// 16 // SectLinkerOption 17 SectLinkerOption::SectLinkerOption(MCLDInfo &pLDInfo) 18 : m_pLDInfo(&pLDInfo) { } 19 20 SectLinkerOption::~SectLinkerOption() { 21 for (PositionDependentOptions::iterator pdoption = m_PosDepOptions.begin(), 22 pdoptionEnd = m_PosDepOptions.end(); pdoption != pdoptionEnd; ++pdoption) 23 delete *pdoption; 24 } 25