Changeset 9facf3b for src/CodeGen


Ignore:
Timestamp:
Dec 15, 2016, 1:33:23 PM (8 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:
5802a4f
Parents:
1486116
git-author:
Rob Schluntz <rschlunt@…> (12/15/16 12:00:08)
git-committer:
Rob Schluntz <rschlunt@…> (12/15/16 13:33:23)
Message:

update generation of return variables and the affected test outputs

Location:
src/CodeGen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r1486116 r9facf3b  
    911911                } // switch
    912912        }
     913
     914        std::string genName( DeclarationWithType * decl ) {
     915                CodeGen::OperatorInfo opInfo;
     916                if ( operatorLookup( decl->get_name(), opInfo ) ) {
     917                        return opInfo.outputName;
     918                } else {
     919                        return decl->get_name();
     920                } // if
     921        }
    913922} // namespace CodeGen
    914923
  • src/CodeGen/CodeGenerator.h

    r1486116 r9facf3b  
    143143                return true;
    144144        }
     145
     146        /// returns C-compatible name of declaration
     147        std::string genName( DeclarationWithType * decl );
    145148} // namespace CodeGen
    146149
Note: See TracChangeset for help on using the changeset viewer.