Changes in src/CodeGen/CodeGenerator.cc [22bc276:2b7bf59]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r22bc276 r2b7bf59 540 540 extension( nameExpr ); 541 541 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 } 545 548 } else { 546 549 output << nameExpr->get_name(); … … 879 882 880 883 void CodeGenerator::postvisit( CaseStmt * caseStmt ) { 884 updateLocation( caseStmt ); 885 output << indent; 881 886 if ( caseStmt->isDefault()) { 882 887 output << "default"; … … 1020 1025 } // namespace CodeGen 1021 1026 1027 std::ostream & operator<<( std::ostream & out, const BaseSyntaxNode * node ) { 1028 if ( node ) { 1029 node->print( out ); 1030 } else { 1031 out << "nullptr"; 1032 } 1033 return out; 1034 } 1035 1022 1036 // Local Variables: // 1023 1037 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.