Changeset f38c8d9


Ignore:
Timestamp:
May 24, 2015, 8:49:30 PM (9 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:
1f2061de
Parents:
79551331
Message:

print storage-class inline, remove builtins.def

Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator2.cc

    r79551331 rf38c8d9  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu May 21 17:13:35 2015
    13 // Update Count     : 7
     12// Last Modified On : Sun May 24 20:43:16 2015
     13// Update Count     : 11
    1414//
    1515
     
    4040
    4141        CodeGenerator2::CodeGenerator2( std::ostream &os, std::string init, int indent, bool infunp )
    42                 : cur_indent( indent ), insideFunction( infunp ), before( os ) {
     42                        : cur_indent( indent ), insideFunction( infunp ), before( os ) {
    4343                //before << std::string( init );
    4444        }
    4545
    4646        CodeGenerator2::CodeGenerator2( std::ostream &os, char *init, int indent, bool infunp )
    47                 : cur_indent( indent ), insideFunction( infunp ), before( os ) {
     47                        : cur_indent( indent ), insideFunction( infunp ), before( os ) {
    4848                //before << std::string( init );
    4949        }
     
    6060        void CodeGenerator2::visit( FunctionDecl *functionDecl ) {
    6161                handleStorageClass( functionDecl );
     62                if ( functionDecl->get_isInline() ) {
     63                        before << "inline ";
     64                } // if
    6265                before << genType( functionDecl->get_functionType(), mangleName( functionDecl ) );
    6366
     
    656659                        before << "register ";
    657660                        break;
     661                  case Declaration::Inline:
     662                        // handled as special via isInline flag (FIX)
     663                        break;
     664                  case Declaration::Fortran:
     665                        // not handled
     666                        break;
    658667                } // switch
    659668        }
  • src/SynTree/Declaration.h

    r79551331 rf38c8d9  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon May 18 08:46:25 2015
    13 // Update Count     : 2
     12// Last Modified On : Thu May 21 23:43:43 2015
     13// Update Count     : 3
    1414//
    1515
     
    123123        CompoundStmt *get_statements() const { return statements; }
    124124        void set_statements( CompoundStmt *newValue ) { statements = newValue; }
    125 //    bool get_isInline() const { return isInline; }
     125    bool get_isInline() const { return isInline; }
    126126//    void set_isInline( bool newValue ) { isInline = newValue; }
    127127        std::list< std::string >& get_oldIdents() { return oldIdents; }
Note: See TracChangeset for help on using the changeset viewer.