Changes in src/CodeGen/CodeGenerator.cc [d7dc824:daf1af8]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rd7dc824 rdaf1af8 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed May 10 14:45:00 201713 // Update Count : 48 412 // Last Modified On : Thu Jun 8 16:00:00 2017 13 // Update Count : 485 14 14 // 15 15 … … 908 908 } 909 909 910 void CodeGenerator::visit( ThrowStmt * throwStmt ) { 911 assertf( ! genC, "Throw statements should not reach code generation." ); 912 913 output << ((throwStmt->get_kind() == ThrowStmt::Terminate) ? 914 "throw" : "throwResume"); 915 if (throwStmt->get_expr()) { 916 output << " "; 917 throwStmt->get_expr()->accept( *this ); 918 } 919 if (throwStmt->get_target()) { 920 output << " _At "; 921 throwStmt->get_target()->accept( *this ); 922 } 923 output << ";"; 924 } 925 910 926 void CodeGenerator::visit( WhileStmt * whileStmt ) { 911 927 if ( whileStmt->get_isDoWhile() ) {
Note:
See TracChangeset
for help on using the changeset viewer.