Changeset d1625f8 for src/Parser/StatementNode.cc
- Timestamp:
- Aug 9, 2016, 2:02:22 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- a6dd5b0, e297ceb
- Parents:
- 7bf7fb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cc
r7bf7fb9 rd1625f8 10 10 // Created On : Sat May 16 14:59:41 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Aug 7 06:42:38201613 // Update Count : 1 3512 // Last Modified On : Tue Aug 9 10:14:33 2016 13 // Update Count : 141 14 14 // 15 15 … … 350 350 351 351 352 AsmStmtNode::AsmStmtNode( Type t, bool voltile, Constant Node *instruction, ExpressionNode *output, ExpressionNode *input, ConstantNode *clobber, LabelNode *gotolabels ) :352 AsmStmtNode::AsmStmtNode( Type t, bool voltile, ConstantExpr *instruction, ExpressionNode *output, ExpressionNode *input, ExpressionNode *clobber, LabelNode *gotolabels ) : 353 353 StatementNode( t ), voltile( voltile ), instruction( instruction ), output( output ), input( input ), clobber( clobber ) { 354 354 if ( gotolabels ) { … … 359 359 360 360 AsmStmtNode::~AsmStmtNode() { 361 delete instruction; deleteoutput; delete input; delete clobber;361 delete output; delete input; delete clobber; 362 362 } 363 363 … … 367 367 if ( instruction ) { 368 368 os << string( indent + ParseNode::indent_by, ' ' ) << "Instruction:" << endl; 369 instruction->printList( os, indent + 2 * ParseNode::indent_by );369 // instruction->printList( os, indent + 2 * ParseNode::indent_by ); 370 370 } // if 371 371 if ( output ) { … … 379 379 if ( clobber ) { 380 380 os << string( indent + ParseNode::indent_by, ' ' ) << "Clobber:" << endl; 381 clobber->printList( os, indent + 2 * ParseNode::indent_by );381 // clobber->printList( os, indent + 2 * ParseNode::indent_by ); 382 382 } // if 383 383 if ( ! gotolabels.empty() ) { … … 408 408 buildList( clobber, clob ); 409 409 std::list< Label > gotolabs = gotolabels; 410 return new AsmStmt( labs, voltile, (ConstantExpr *)maybeBuild< Expression >( instruction ), out, in, clob, gotolabs );410 return new AsmStmt( labs, voltile, instruction, out, in, clob, gotolabs ); 411 411 } 412 412
Note: See TracChangeset
for help on using the changeset viewer.