Ignore:
Timestamp:
Jun 24, 2015, 4:04:19 PM (10 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
94e0864d
Parents:
a1d5d2a
Message:

fix computed goto, fixed -std=, implicit typedefs for enum and aggregates, add _Noreturn _Thread_local

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    ra1d5d2a rde62360d  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jun 13 07:12:27 2015
    13 // Update Count     : 129
     12// Last Modified On : Tue Jun 23 16:16:57 2015
     13// Update Count     : 133
    1414//
    1515
     
    6969                if ( functionDecl->get_isInline() ) {
    7070                        output << "inline ";
     71                } // if
     72                if ( functionDecl->get_isNoreturn() ) {
     73                        output << "_Noreturn ";
    7174                } // if
    7275                output << genType( functionDecl->get_functionType(), mangleName( functionDecl ) );
     
    295298                                  case OT_PREFIX:
    296299                                  case OT_PREFIXASSIGN:
     300                                  case OT_LABELADDRESS:
    297301                                        assert( untypedExpr->get_args().size() == 1 );
    298302                                        output << "(";
     
    318322                                        output << ")";
    319323                                        break;
    320              
     324                                       
    321325                                  case OT_CONSTANT:
    322326                                        // there are no intrinsic definitions of 0 or 1 as functions
     
    634638                        break;
    635639                  case DeclarationNode::Inline:
    636                         // handled as special via isInline flag (FIX)
     640                        output << "inline ";
    637641                        break;
    638642                  case DeclarationNode::Fortran:
    639                         // not handled
    640643                        output << "fortran ";
    641644                        break;
    642645                  case DeclarationNode::Noreturn:
    643                         // not handled
    644646                        output << "_Noreturn ";
    645647                        break;
    646648                  case DeclarationNode::Threadlocal:
    647                         // not handled
    648649                        output << "_Thread_local ";
    649650                        break;
Note: See TracChangeset for help on using the changeset viewer.