1//===- EntryCmd.h ---------------------------------------------------------===// 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#ifndef MCLD_SCRIPT_ENTRYCMD_H 10#define MCLD_SCRIPT_ENTRYCMD_H 11 12#include <mcld/Script/ScriptCommand.h> 13#include <string> 14 15namespace mcld 16{ 17 18class Module; 19 20/** \class EntryCmd 21 * \brief This class defines the interfaces to Entry command. 22 */ 23 24class EntryCmd : public ScriptCommand 25{ 26public: 27 EntryCmd(const std::string& pEntry); 28 ~EntryCmd(); 29 30 void dump() const; 31 32 static bool classof(const ScriptCommand* pCmd) 33 { 34 return pCmd->getKind() == ScriptCommand::ENTRY; 35 } 36 37 void activate(Module& pModule); 38 39private: 40 std::string m_Entry; 41}; 42 43} // namespace of mcld 44 45#endif 46 47