Changeset 1e8b02f5 for src/SynTree
- Timestamp:
- Aug 26, 2016, 3:06:08 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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:
- 5e644d3e
- Parents:
- f2a4f6c
- Location:
- src/SynTree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ReferenceToType.cc
rf2a4f6c r1e8b02f5 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ReferenceToType.cc -- 7 // ReferenceToType.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 36 36 void ReferenceToType::print( std::ostream &os, int indent ) const { 37 37 using std::endl; 38 38 39 39 Type::print( os, indent ); 40 40 os << "instance of " << typeString() << " " << name << " "; … … 128 128 } 129 129 130 TypeInstType::~TypeInstType() { 131 // delete baseType; //This is shared and should not be deleted 132 } 133 130 134 void TypeInstType::set_baseType( TypeDecl *newValue ) { 131 135 baseType = newValue; … … 137 141 void TypeInstType::print( std::ostream &os, int indent ) const { 138 142 using std::endl; 139 143 140 144 Type::print( os, indent ); 141 145 os << "instance of " << typeString() << " " << get_name() << " (" << ( isFtype ? "" : "not" ) << " function type) "; -
src/SynTree/Type.h
rf2a4f6c r1e8b02f5 327 327 TypeInstType( const Type::Qualifiers &tq, const std::string &name, bool isFtype ); 328 328 TypeInstType( const TypeInstType &other ) : Parent( other ), baseType( other.baseType ), isFtype( other.isFtype ) {} 329 ~TypeInstType(); 329 330 330 331 TypeDecl *get_baseType() const { return baseType; }
Note: See TracChangeset
for help on using the changeset viewer.