Changeset 5ea7a22 for src/CodeGen


Ignore:
Timestamp:
Sep 27, 2017, 4:24:16 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
7fc7cdb
Parents:
e4ea10b7
git-author:
Rob Schluntz <rschlunt@…> (09/27/17 15:50:09)
git-committer:
Rob Schluntz <rschlunt@…> (09/27/17 16:24:16)
Message:

Make Attribute a child of BaseSyntaxNode?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    re4ea10b7 r5ea7a22  
    540540                extension( nameExpr );
    541541                OperatorInfo opInfo;
    542                 if ( operatorLookup( nameExpr->get_name(), opInfo ) ) {
    543                         assert( opInfo.type == OT_CONSTANT );
    544                         output << opInfo.symbol;
     542                if ( operatorLookup( nameExpr->name, opInfo ) ) {
     543                        if ( opInfo.type == OT_CONSTANT ) {
     544                                output << opInfo.symbol;
     545                        } else {
     546                                output << opInfo.outputName;
     547                        }
    545548                } else {
    546549                        output << nameExpr->get_name();
Note: See TracChangeset for help on using the changeset viewer.