diff options
Diffstat (limited to 'lib/Script/SearchDirCmd.cpp')
-rw-r--r-- | lib/Script/SearchDirCmd.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/lib/Script/SearchDirCmd.cpp b/lib/Script/SearchDirCmd.cpp index dd9a56f..53ec2dd 100644 --- a/lib/Script/SearchDirCmd.cpp +++ b/lib/Script/SearchDirCmd.cpp @@ -6,33 +6,30 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -#include <mcld/Script/SearchDirCmd.h> -#include <mcld/Support/raw_ostream.h> -#include <mcld/LinkerScript.h> -#include <mcld/Module.h> +#include "mcld/Script/SearchDirCmd.h" -using namespace mcld; +#include "mcld/Support/raw_ostream.h" +#include "mcld/LinkerScript.h" +#include "mcld/Module.h" + +namespace mcld { //===----------------------------------------------------------------------===// // SearchDirCmd //===----------------------------------------------------------------------===// SearchDirCmd::SearchDirCmd(const std::string& pPath) - : ScriptCommand(ScriptCommand::SEARCH_DIR), - m_Path(pPath) -{ + : ScriptCommand(ScriptCommand::SEARCH_DIR), m_Path(pPath) { } -SearchDirCmd::~SearchDirCmd() -{ +SearchDirCmd::~SearchDirCmd() { } -void SearchDirCmd::dump() const -{ +void SearchDirCmd::dump() const { mcld::outs() << "SEARCH_DIR ( " << m_Path << " )\n"; } -void SearchDirCmd::activate(Module& pModule) -{ +void SearchDirCmd::activate(Module& pModule) { pModule.getScript().directories().insert(m_Path); } +} // namespace mcld |