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