Changeset 7f5566b for src/SynTree/Constant.cc
- Timestamp:
- Jul 30, 2015, 3:56:18 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:
- 093f1a0
- Parents:
- 51b986f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.cc
r51b986f r7f5566b 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Wed Jun 10 14:41:03201513 // Update Count : 811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 30 15:18:38 2015 13 // Update Count : 12 14 14 // 15 15 … … 22 22 Constant::Constant( Type *type_, std::string value_ ) : type( type_ ), value( value_ ) {} 23 23 24 Constant::~Constant() {} 24 Constant::Constant( const Constant &other ) { 25 type = other.type->clone(); 26 value = other.value; 27 } 25 28 26 Constant *Constant::clone() const { return 0; } 29 Constant::~Constant() { delete type; } 30 31 Constant *Constant::clone() const { assert( false ); return 0; } 27 32 28 33 void Constant::print( std::ostream &os ) const {
Note: See TracChangeset
for help on using the changeset viewer.