Changes in src/CodeGen/CodeGenerator.cc [a0c7dc36:e149f77]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
ra0c7dc36 re149f77 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Fri Aug 18 15:34:00201713 // Update Count : 4 8811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Sep 3 20:42:52 2017 13 // Update Count : 490 14 14 // 15 15 #include "CodeGenerator.h" … … 59 59 60 60 void CodeGenerator::asmName( DeclarationWithType * decl ) { 61 if ( ConstantExpr * asmName = d ecl->get_asmName() ) {61 if ( ConstantExpr * asmName = dynamic_cast<ConstantExpr *>(decl->get_asmName()) ) { 62 62 output << " asm ( " << asmName->get_constant()->get_value() << " )"; 63 63 } // if … … 865 865 void CodeGenerator::visit( CaseStmt * caseStmt ) { 866 866 updateLocation( caseStmt ); 867 output << indent; 867 868 if ( caseStmt->isDefault()) { 868 869 output << "default"; … … 1001 1002 } // namespace CodeGen 1002 1003 1004 std::ostream & operator<<( std::ostream & out, const BaseSyntaxNode * node ) { 1005 if ( node ) { 1006 node->print( out ); 1007 } else { 1008 out << "nullptr"; 1009 } 1010 return out; 1011 } 1012 1003 1013 // Local Variables: // 1004 1014 // tab-width: 4 //
Note: See TracChangeset
for help on using the changeset viewer.