Changeset 68cd1ce for src/CodeGen
- Timestamp:
- Jun 13, 2015, 8:30:25 AM (9 years ago)
- 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:
- a1d5d2a
- Parents:
- 7bcf74e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r7bcf74e r68cd1ce 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Thu Jun 04 15:00:00201513 // Update Count : 12 511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jun 13 07:12:27 2015 13 // Update Count : 129 14 14 // 15 15 … … 19 19 #include <list> 20 20 21 #include "Parser/ParseNode.h" 22 21 23 #include "SynTree/Type.h" 22 #include "SynTree/Declaration.h"23 #include "SynTree/Statement.h"24 24 #include "SynTree/Expression.h" 25 25 #include "SynTree/Initializer.h" 26 #include "SynTree/Statement.h" 26 27 27 28 #include "utility.h" … … 620 621 void CodeGenerator::handleStorageClass( Declaration *decl ) { 621 622 switch ( decl->get_storageClass() ) { 622 case Declaration::NoStorageClass: 623 break; 624 case Declaration::Extern: 623 case DeclarationNode::Extern: 625 624 output << "extern "; 626 625 break; 627 case Declaration ::Static:626 case DeclarationNode::Static: 628 627 output << "static "; 629 628 break; 630 case Declaration ::Auto:629 case DeclarationNode::Auto: 631 630 // silently drop storage class 632 631 break; 633 case Declaration ::Register:632 case DeclarationNode::Register: 634 633 output << "register "; 635 634 break; 636 case Declaration ::Inline:635 case DeclarationNode::Inline: 637 636 // handled as special via isInline flag (FIX) 638 637 break; 639 case Declaration ::Fortran:638 case DeclarationNode::Fortran: 640 639 // not handled 640 output << "fortran "; 641 break; 642 case DeclarationNode::Noreturn: 643 // not handled 644 output << "_Noreturn "; 645 break; 646 case DeclarationNode::Threadlocal: 647 // not handled 648 output << "_Thread_local "; 649 break; 650 case DeclarationNode::NoStorageClass: 641 651 break; 642 652 } // switch
Note: See TracChangeset
for help on using the changeset viewer.