Changeset afc1045 for src/SynTree/Expression.cc
- Timestamp:
- Apr 5, 2016, 3:31:09 PM (8 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:
- d75038c
- Parents:
- b3f9a0cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
rb3f9a0cb rafc1045 222 222 } 223 223 224 OffsetPackExpr::OffsetPackExpr( StructInstType *type_, Expression *aname_ ) : Expression( aname_ ), type( type_ ) { 225 add_result( new ArrayType( Type::Qualifiers(), new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ), 0, false, false ) ); 226 } 227 228 OffsetPackExpr::OffsetPackExpr( const OffsetPackExpr &other ) : Expression( other ), type( maybeClone( other.type ) ) {} 229 230 OffsetPackExpr::~OffsetPackExpr() { delete type; } 231 232 void OffsetPackExpr::print( std::ostream &os, int indent ) const { 233 os << std::string( indent, ' ' ) << "Offset pack expression on "; 234 235 if ( type ) { 236 type->print(os, indent + 2); 237 } else { 238 os << "<NULL>"; 239 } 240 241 os << std::endl; 242 Expression::print( os, indent ); 243 } 244 224 245 AttrExpr::AttrExpr( Expression *attr, Expression *expr_, Expression *_aname ) : 225 246 Expression( _aname ), attr( attr ), expr(expr_), type(0), isType(false) {
Note: See TracChangeset
for help on using the changeset viewer.