//===- UnaryOp.h ----------------------------------------------------------===// // // The MCLinker Project // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef MCLD_SCRIPT_UNARYOP_H #define MCLD_SCRIPT_UNARYOP_H #include #include namespace mcld { class Operand; class IntOperand; class Module; class TargetLDBackend; /** \class UnaryOp * \brief This class defines the interfaces to an unary operator token. */ template class UnaryOp : public Operator { private: friend class Operator; UnaryOp() : Operator(Operator::UNARY, TYPE), m_pOperand(NULL) {} public: ~UnaryOp() {} IntOperand* eval(const Module& pModule, const TargetLDBackend& pBackend); void appendOperand(Operand* pOperand) { m_pOperand = pOperand; } private: Operand* m_pOperand; }; template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); template<> IntOperand* UnaryOp::eval(const Module&, const TargetLDBackend&); } // namespace of mcld #endif