//===- 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 "mcld/Script/Operator.h" #include namespace mcld { class IntOperand; class Module; class Operand; 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 mcld #endif // MCLD_SCRIPT_UNARYOP_H_