Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Expression.cc

    ra5f0529 r62423350  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 25 14:15:47 2017
    13 // Update Count     : 54
     12// Last Modified On : Thu Mar 30 16:41:13 2017
     13// Update Count     : 52
    1414//
    1515
     
    298298        if ( result->isVoid() ) {
    299299                os << "nothing";
    300         } else {
    301                 result->print( os, indent+2 );
    302         } // if
    303         os << std::endl;
    304         Expression::print( os, indent );
    305 }
    306 
    307 VirtualCastExpr::VirtualCastExpr( Expression *arg_, Type *toType ) : Expression(), arg(arg_) {
    308         set_result(toType);
    309 }
    310 
    311 VirtualCastExpr::VirtualCastExpr( const VirtualCastExpr &other ) : Expression( other ), arg( maybeClone( other.arg ) ) {
    312 }
    313 
    314 VirtualCastExpr::~VirtualCastExpr() {
    315         delete arg;
    316 }
    317 
    318 void VirtualCastExpr::print( std::ostream &os, int indent ) const {
    319         os << "Virtual Cast of:" << std::endl << std::string( indent+2, ' ' );
    320         arg->print(os, indent+2);
    321         os << std::endl << std::string( indent, ' ' ) << "to:" << std::endl;
    322         os << std::string( indent+2, ' ' );
    323         if ( ! result ) {
    324                 os << "unknown";
    325300        } else {
    326301                result->print( os, indent+2 );
     
    528503}
    529504
    530 AsmExpr::AsmExpr( const AsmExpr & other ) : Expression( other ), inout( maybeClone( other.inout ) ), constraint( maybeClone( other.constraint ) ), operand( maybeClone( other.operand ) ) {}
     505AsmExpr::AsmExpr( const AsmExpr & other ) : inout( maybeClone( other.inout ) ), constraint( maybeClone( other.constraint ) ), operand( maybeClone( other.operand ) ) {}
    531506
    532507
Note: See TracChangeset for help on using the changeset viewer.