Ignore:
Timestamp:
Aug 9, 2016, 2:02:22 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

more refactoring of parser code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cc

    r7bf7fb9 rd1625f8  
    1010// Created On       : Sat May 16 14:59:41 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Aug  7 06:42:38 2016
    13 // Update Count     : 135
     12// Last Modified On : Tue Aug  9 10:14:33 2016
     13// Update Count     : 141
    1414//
    1515
     
    350350
    351351
    352 AsmStmtNode::AsmStmtNode( Type t, bool voltile, ConstantNode *instruction, ExpressionNode *output, ExpressionNode *input, ConstantNode *clobber, LabelNode *gotolabels ) :
     352AsmStmtNode::AsmStmtNode( Type t, bool voltile, ConstantExpr *instruction, ExpressionNode *output, ExpressionNode *input, ExpressionNode *clobber, LabelNode *gotolabels ) :
    353353        StatementNode( t ), voltile( voltile ), instruction( instruction ), output( output ), input( input ), clobber( clobber ) {
    354354        if ( gotolabels ) {
     
    359359
    360360AsmStmtNode::~AsmStmtNode() {
    361         delete instruction; delete output; delete input; delete clobber;
     361        delete output; delete input; delete clobber;
    362362}
    363363
     
    367367        if ( instruction ) {
    368368                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 );
    370370        } // if
    371371        if ( output ) {
     
    379379        if ( clobber ) {
    380380                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 );
    382382        } // if
    383383        if ( ! gotolabels.empty() ) {
     
    408408        buildList( clobber, clob );
    409409        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 );
    411411}
    412412
Note: See TracChangeset for help on using the changeset viewer.