Changeset 96df1329 for src/BasicTypes-gen.cc
- Timestamp:
- Feb 20, 2019, 10:00:59 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 2d2df9f
- Parents:
- 6dfed1f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/BasicTypes-gen.cc
r6dfed1f r96df1329 368 368 code << "\t#define BT BasicType::" << endl; 369 369 code << "\tstatic const BasicType::Kind commonTypes[BasicType::NUMBER_OF_BASIC_TYPES][BasicType::NUMBER_OF_BASIC_TYPES] = { // nearest common ancestor" << endl 370 << "\t\t/* 370 << "\t\t/*\t\t "; 371 371 for ( int r = 0; r < NUMBER_OF_BASIC_TYPES; r += 1 ) { // titles 372 372 code << setw(24) << graph[r].abbrev; 373 373 if ( (r+1) % PER_ROW == 0 ) { 374 code << endl << "\t\t "; 375 } else { 376 code << ' '; 377 } 374 code << endl << "\t\t\t\t "; 375 } // if 378 376 } // for 379 377 code << "*/" << endl; 380 378 for ( int r = 0; r < NUMBER_OF_BASIC_TYPES; r += 1 ) { // costs 381 code << "\t\t /*" << setw(6) << graph[r].abbrev << "*/";379 code << "\t\t\t\t {\n\t\t/*" << setw(6) << graph[r].abbrev << "*/"; 382 380 for ( int c = 0; c < NUMBER_OF_BASIC_TYPES; c += 1 ) { 383 381 string s = string{"BT "} + graph[commonTypeMatrix[r][c]].name; 384 382 code << setw(23) << s << ","; 385 383 if ( (c+1) % PER_ROW == 0 ) { 386 code << endl << "\t\t "; 387 } else { 388 code << ' '; 389 } 384 code << endl << "\t\t\t\t "; 385 } // if 390 386 } // for 391 code << endl;387 code << "}," << endl; 392 388 } // for 393 389 code << "\t};" << endl;
Note: See TracChangeset
for help on using the changeset viewer.