Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    re149f77 ra0c7dc36  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Sep  3 20:42:52 2017
    13 // Update Count     : 490
     11// Last Modified By : Andrew Beach
     12// Last Modified On : Fri Aug 18 15:34:00 2017
     13// Update Count     : 488
    1414//
    1515#include "CodeGenerator.h"
     
    5959
    6060        void CodeGenerator::asmName( DeclarationWithType * decl ) {
    61                 if ( ConstantExpr * asmName = dynamic_cast<ConstantExpr *>(decl->get_asmName()) ) {
     61                if ( ConstantExpr * asmName = decl->get_asmName() ) {
    6262                        output << " asm ( " << asmName->get_constant()->get_value() << " )";
    6363                } // if
     
    865865        void CodeGenerator::visit( CaseStmt * caseStmt ) {
    866866                updateLocation( caseStmt );
    867                 output << indent;
    868867                if ( caseStmt->isDefault()) {
    869868                        output << "default";
     
    10021001} // namespace CodeGen
    10031002
    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 
    10131003// Local Variables: //
    10141004// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.