Changes in src/SynTree/Expression.cc [a5f0529:62423350]
- File:
-
- 1 edited
-
src/SynTree/Expression.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
ra5f0529 r62423350 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T ue Jul 25 14:15:47201713 // Update Count : 5 412 // Last Modified On : Thu Mar 30 16:41:13 2017 13 // Update Count : 52 14 14 // 15 15 … … 298 298 if ( result->isVoid() ) { 299 299 os << "nothing"; 300 } else {301 result->print( os, indent+2 );302 } // if303 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";325 300 } else { 326 301 result->print( os, indent+2 ); … … 528 503 } 529 504 530 AsmExpr::AsmExpr( const AsmExpr & other ) : Expression( other ),inout( maybeClone( other.inout ) ), constraint( maybeClone( other.constraint ) ), operand( maybeClone( other.operand ) ) {}505 AsmExpr::AsmExpr( const AsmExpr & other ) : inout( maybeClone( other.inout ) ), constraint( maybeClone( other.constraint ) ), operand( maybeClone( other.operand ) ) {} 531 506 532 507
Note:
See TracChangeset
for help on using the changeset viewer.