Changeset 057b34f for src/CodeGen/CodeGenerator.cc
- Timestamp:
- Jul 31, 2016, 12:41:25 AM (8 years ago)
- 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:
- 08061589, c45170a
- Parents:
- 3778cb2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r3778cb2 r057b34f 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jul 30 14:59:34 201613 // Update Count : 34 112 // Last Modified On : Sun Jul 31 00:11:54 2016 13 // Update Count : 343 14 14 // 15 15 … … 419 419 assert( false ); 420 420 421 422 421 case OT_CTOR: 423 422 case OT_DTOR: … … 473 472 } // switch 474 473 } else { 475 if ( nameExpr->get_name() != "Range" ) { // builtin routines 474 if ( nameExpr->get_name() == "Range" ) { // case V1 ... V2 or case V1~V2 475 assert( untypedExpr->get_args().size() == 2 ); 476 (*untypedExpr->get_args().begin())->accept( *this ); 477 output << " ... "; 478 (*--untypedExpr->get_args().end())->accept( *this ); 479 } else { // builtin routines 476 480 nameExpr->accept( *this ); 477 481 output << "("; 478 482 genCommaList( untypedExpr->get_args().begin(), untypedExpr->get_args().end() ); 479 483 output << ")"; 480 } else { // case V1 ... V2 or case V1~V2481 assert( untypedExpr->get_args().size() == 2 );482 (*untypedExpr->get_args().begin())->accept( *this );483 output << " ... ";484 (*--untypedExpr->get_args().end())->accept( *this );485 484 } // if 486 485 } // if
Note: See TracChangeset
for help on using the changeset viewer.