Changeset de52331


Ignore:
Timestamp:
Aug 13, 2021, 3:59:15 PM (12 months ago)
Author:
caparsons <caparson@…>
Branches:
enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation
Children:
a4d098c
Parents:
6cebfef
Message:

some more files related to mutex stmt

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/CodeLocationTools.cpp

    r6cebfef rde52331  
    125125    macro(DeclStmt, Stmt) \
    126126    macro(ImplicitCtorDtorStmt, Stmt) \
     127    macro(MutexStmt, Stmt) \
    127128    macro(ApplicationExpr, Expr) \
    128129    macro(UntypedExpr, Expr) \
  • src/Parser/StatementNode.cc

    r6cebfef rde52331  
    374374} // build_directive
    375375
     376Statement * build_mutex( ExpressionNode * exprs, StatementNode * stmt ) {
     377        std::list< Expression * > expList;
     378        buildMoveList( exprs, expList );
     379        Statement * body = maybeMoveBuild<Statement>( stmt );
     380        return new MutexStmt( body, expList );
     381} // build_mutex
     382
    376383// Local Variables: //
    377384// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.