Changeset b5b0907 for src/CodeGen
- Timestamp:
- Jun 15, 2015, 12:45:26 PM (10 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:
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rea9b9d3 rb5b0907 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Jun 11 13:22:39201513 // Update Count : 13 712 // Last Modified On : Mon Jun 15 12:43:21 2015 13 // Update Count : 138 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" … … 628 629 void CodeGenerator::handleStorageClass( Declaration *decl ) { 629 630 switch ( decl->get_storageClass() ) { 630 case Declaration::NoStorageClass: 631 break; 632 case Declaration::Extern: 631 case DeclarationNode::Extern: 633 632 output << "extern "; 634 633 break; 635 case Declaration ::Static:634 case DeclarationNode::Static: 636 635 output << "static "; 637 636 break; 638 case Declaration ::Auto:637 case DeclarationNode::Auto: 639 638 // silently drop storage class 640 639 break; 641 case Declaration ::Register:640 case DeclarationNode::Register: 642 641 output << "register "; 643 642 break; 644 case Declaration ::Inline:643 case DeclarationNode::Inline: 645 644 // handled as special via isInline flag (FIX) 646 645 break; 647 case Declaration ::Fortran:646 case DeclarationNode::Fortran: 648 647 // 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: 649 659 break; 650 660 } // switch
Note:
See TracChangeset
for help on using the changeset viewer.