blob: 85d6b1065a200620b1e7695fb21738dc8191f135 [file] [log] [blame]
//===- SectLinkerOption.cpp -------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "mcld/CodeGen/SectLinkerOption.h"
#include "mcld/Support/DerivedPositionDependentOptions.h"
#include "mcld/Support/RealPath.h"
using namespace mcld;
//===----------------------------------------------------------------------===//
// SectLinkerOption
SectLinkerOption::SectLinkerOption(MCLDInfo &pLDInfo)
: m_pLDInfo(&pLDInfo) { }
SectLinkerOption::~SectLinkerOption() {
for (PositionDependentOptions::iterator pdoption = m_PosDepOptions.begin(),
pdoptionEnd = m_PosDepOptions.end(); pdoption != pdoptionEnd; ++pdoption)
delete *pdoption;
}