LinkerScript.cpp revision f7ac0f19a1c8d0ad14bcf6456ce368b830fea886
1//===- LinkerScript.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/LinkerScript.h> 10 11using namespace mcld; 12 13//===----------------------------------------------------------------------===// 14// LinkerScript 15//===----------------------------------------------------------------------===// 16LinkerScript::LinkerScript() 17{ 18} 19 20LinkerScript::~LinkerScript() 21{ 22} 23 24const mcld::sys::fs::Path& LinkerScript::sysroot() const 25{ 26 return m_SearchDirs.sysroot(); 27} 28 29void LinkerScript::setSysroot(const mcld::sys::fs::Path &pSysroot) 30{ 31 m_SearchDirs.setSysRoot(pSysroot); 32} 33 34bool LinkerScript::hasSysroot() const 35{ 36 return !sysroot().empty(); 37} 38 39