//===- LinkerScript.cpp ---------------------------------------------------===// // // The MCLinker Project // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include <mcld/LinkerScript.h> using namespace mcld; //===----------------------------------------------------------------------===// // LinkerScript //===----------------------------------------------------------------------===// LinkerScript::LinkerScript() { } LinkerScript::~LinkerScript() { } const mcld::sys::fs::Path& LinkerScript::sysroot() const { return m_SearchDirs.sysroot(); } void LinkerScript::setSysroot(const mcld::sys::fs::Path &pSysroot) { m_SearchDirs.setSysRoot(pSysroot); } bool LinkerScript::hasSysroot() const { return !sysroot().empty(); } const std::string& LinkerScript::entry() const { return m_Entry; } void LinkerScript::setEntry(const std::string& pEntry) { m_Entry = pEntry; } bool LinkerScript::hasEntry() const { return !m_Entry.empty(); } const std::string& LinkerScript::outputFile() const { return m_OutputFile; } void LinkerScript::setOutputFile(const std::string& pOutputFile) { m_OutputFile = pOutputFile; } bool LinkerScript::hasOutputFile() const { return !m_OutputFile.empty(); }