stage3/constant_folding.cc
changeset 587 1ecf916cc397
parent 579 983a3b743085
child 588 3d72d09bd40f
equal deleted inserted replaced
586:b602f0459f17 587:1ecf916cc397
   429 	return NULL;
   429 	return NULL;
   430 }
   430 }
   431 
   431 
   432 
   432 
   433 void *constant_folding_c::visit(integer_c *symbol) {
   433 void *constant_folding_c::visit(integer_c *symbol) {
   434 	NEW_CVALUE( int64, symbol);	SET_CVALUE( int64, symbol, extract_integer_value(symbol));
   434 	bool overflow;
   435 	NEW_CVALUE(uint64, symbol);	SET_CVALUE(uint64, symbol, extract_integer_value(symbol));
   435 	NEW_CVALUE( int64, symbol);	SET_CVALUE( int64, symbol, extract_int64_value(symbol, &overflow));
       
   436 	NEW_CVALUE(uint64, symbol);	SET_CVALUE(uint64, symbol, extract_uint64_value(symbol, &overflow));
   436 	return NULL;
   437 	return NULL;
   437 }
   438 }
   438 
   439 
   439 
   440 
   440 void *constant_folding_c::visit(neg_real_c *symbol) {
   441 void *constant_folding_c::visit(neg_real_c *symbol) {