Changeset b5b0907 for src/CodeGen


Ignore:
Timestamp:
Jun 15, 2015, 12:45:26 PM (10 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
94b4364
Parents:
ea9b9d3 (diff), a1d5d2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into resolver

Conflicts:

src/CodeGen/CodeGenerator.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    rea9b9d3 rb5b0907  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Jun 11 13:22:39 2015
    13 // Update Count     : 137
     12// Last Modified On : Mon Jun 15 12:43:21 2015
     13// Update Count     : 138
    1414//
    1515
     
    1919#include <list>
    2020
     21#include "Parser/ParseNode.h"
     22
    2123#include "SynTree/Type.h"
    22 #include "SynTree/Declaration.h"
    23 #include "SynTree/Statement.h"
    2424#include "SynTree/Expression.h"
    2525#include "SynTree/Initializer.h"
     26#include "SynTree/Statement.h"
    2627
    2728#include "utility.h"
     
    628629        void CodeGenerator::handleStorageClass( Declaration *decl ) {
    629630                switch ( decl->get_storageClass() ) {
    630                   case Declaration::NoStorageClass:
    631                         break;
    632                   case Declaration::Extern:
     631                  case DeclarationNode::Extern:
    633632                        output << "extern ";
    634633                        break;
    635                   case Declaration::Static:
     634                  case DeclarationNode::Static:
    636635                        output << "static ";
    637636                        break;
    638                   case Declaration::Auto:
     637                  case DeclarationNode::Auto:
    639638                        // silently drop storage class
    640639                        break;
    641                   case Declaration::Register:
     640                  case DeclarationNode::Register:
    642641                        output << "register ";
    643642                        break;
    644                   case Declaration::Inline:
     643                  case DeclarationNode::Inline:
    645644                        // handled as special via isInline flag (FIX)
    646645                        break;
    647                   case Declaration::Fortran:
     646                  case DeclarationNode::Fortran:
    648647                        // not handled
     648                        output << "fortran ";
     649                        break;
     650                  case DeclarationNode::Noreturn:
     651                        // not handled
     652                        output << "_Noreturn ";
     653                        break;
     654                  case DeclarationNode::Threadlocal:
     655                        // not handled
     656                        output << "_Thread_local ";
     657                        break;
     658                  case DeclarationNode::NoStorageClass:
    649659                        break;
    650660                } // switch
Note: See TracChangeset for help on using the changeset viewer.