Changeset 615a096 for src/CodeGen
- Timestamp:
- Mar 17, 2017, 9:58:23 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 409433da, 946bcca
- Parents:
- 395fc37
- Location:
- src/CodeGen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r395fc37 r615a096 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 16 09:09:09201713 // Update Count : 48 012 // Last Modified On : Fri Mar 17 09:06:01 2017 13 // Update Count : 481 14 14 // 15 15 … … 539 539 if ( castExpr->get_result()->isVoid() ) { 540 540 output << "(void)" ; 541 } else if ( ! castExpr->get_result()->get_ isLvalue() ) {541 } else if ( ! castExpr->get_result()->get_lvalue() ) { 542 542 // at least one result type of cast, but not an lvalue 543 543 output << "("; -
src/CodeGen/GenType.cc
r395fc37 r615a096 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 2 13:53:43201713 // Update Count : 2 012 // Last Modified On : Fri Mar 17 09:02:28 2017 13 // Update Count : 22 14 14 // 15 15 … … 99 99 os << "static "; 100 100 } // if 101 if ( qualifiers.is Const ) {101 if ( qualifiers.is_const ) { 102 102 os << "const "; 103 103 } // if 104 if ( qualifiers.is Volatile ) {104 if ( qualifiers.is_volatile ) { 105 105 os << "volatile "; 106 106 } // if 107 if ( qualifiers.is Restrict ) {107 if ( qualifiers.is_restrict ) { 108 108 os << "__restrict "; 109 109 } // if 110 if ( qualifiers.is Atomic ) {110 if ( qualifiers.is_atomic ) { 111 111 os << "_Atomic "; 112 112 } // if … … 238 238 239 239 void GenType::handleQualifiers( Type *type ) { 240 if ( type->get_ isConst() ) {240 if ( type->get_const() ) { 241 241 typeString = "const " + typeString; 242 242 } // if 243 if ( type->get_ isVolatile() ) {243 if ( type->get_volatile() ) { 244 244 typeString = "volatile " + typeString; 245 245 } // if 246 if ( type->get_ isRestrict() ) {246 if ( type->get_restrict() ) { 247 247 typeString = "__restrict " + typeString; 248 248 } // if 249 if ( type->get_ isAtomic() ) {249 if ( type->get_atomic() ) { 250 250 typeString = "_Atomic " + typeString; 251 251 } // if
Note: See TracChangeset
for help on using the changeset viewer.