Changeset 17cd4eb for translator/Parser/DeclarationNode.cc
- Timestamp:
- Jan 7, 2015, 6:04:42 PM (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:
- 0b8cd722
- Parents:
- d9a0e76
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/Parser/DeclarationNode.cc
rd9a0e76 r17cd4eb 19 19 /* these must remain in the same order as the corresponding DeclarationNode enumerations */ 20 20 const char *DeclarationNode::qualifierName[] = { "const", "restrict", "volatile", "lvalue" }; 21 const char *DeclarationNode::basicTypeName[] = { "char", "int", "float", "double", "void", " bool", "complex", "imaginary" };21 const char *DeclarationNode::basicTypeName[] = { "char", "int", "float", "double", "void", "_Bool", "_Complex", "_Imaginary" }; 22 22 const char *DeclarationNode::modifierName[] = { "signed", "unsigned", "short", "long" }; 23 23 const char *DeclarationNode::tyConName[] = { "struct", "union", "context" }; … … 799 799 } else if ( StructDecl *agg = dynamic_cast< StructDecl* >( decl ) ) { 800 800 StructInstType *inst = new StructInstType( Type::Qualifiers(), agg->get_name() ); 801 *out++ = new ObjectDecl( "", Declaration::NoStorageClass, linkage, 0, inst, 0 );801 *out++ = new ObjectDecl( "", Declaration::NoStorageClass, linkage, 0, inst, 0 ); 802 802 delete agg; 803 803 } else if ( UnionDecl *agg = dynamic_cast< UnionDecl* >( decl ) ) { 804 804 UnionInstType *inst = new UnionInstType( Type::Qualifiers(), agg->get_name() ); 805 *out++ = new ObjectDecl( "", Declaration::NoStorageClass, linkage, 0, inst, 0 );805 *out++ = new ObjectDecl( "", Declaration::NoStorageClass, linkage, 0, inst, 0 ); 806 806 } 807 807 }
Note: See TracChangeset
for help on using the changeset viewer.