blob: 0a63891862b202a4203c77249446b6418f5a52c8 [file] [log] [blame]
//===- OutputCmd.h --------------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_SCRIPT_OUTPUTCMD_H
#define MCLD_SCRIPT_OUTPUTCMD_H
#ifdef ENABLE_UNITTEST
#include <gtest.h>
#endif
#include <mcld/Script/ScriptCommand.h>
#include <string>
namespace mcld
{
class Module;
/** \class OutputCmd
* \brief This class defines the interfaces to Output command.
*/
class OutputCmd : public ScriptCommand
{
public:
OutputCmd(const std::string& pOutputFile);
~OutputCmd();
void dump() const;
static bool classof(const ScriptCommand* pCmd)
{
return pCmd->getKind() == ScriptCommand::OUTPUT;
}
void activate(Module& pModule);
private:
std::string m_OutputFile;
};
} // namespace of mcld
#endif