Changeset bdd516a for translator/main.cc
- Timestamp:
- Apr 28, 2015, 4:21:36 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:
- 42e2ad7
- Parents:
- ad17ba6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/main.cc
rad17ba6a rbdd516a 48 48 bool debugp = false, treep = false, astp = false, manglep = false, symtabp = false, validp = false; 49 49 bool preludep = true, protop = false, libp = false; 50 bool exprp = false ;50 bool exprp = false, codegenp = false; 51 51 int c; 52 52 FILE *input, *prelude, *builtins; … … 55 55 opterr = 0; 56 56 57 while ( (c = getopt( argc, argv, "dtsgmvxcenprlD :" )) != -1 ) {57 while ( (c = getopt( argc, argv, "dtsgmvxcenprlDz:" )) != -1 ) { 58 58 switch (c) { 59 59 case 'd': … … 89 89 exprp = true; 90 90 break; 91 case 'z': 92 codegenp = true; 93 break; 91 94 case 'n': 92 95 /* don't read preamble */ … … 234 237 return 0; 235 238 } // if 239 240 if ( codegenp ) { 241 // print the tree right before code generation... 242 // InitTweak::mutate( translationUnit ); 243 // InitTweak::tweak( translationUnit ); 244 //printAll( translationUnit, std::cout ); 245 246 // std::cerr << "finished tweaking" << std::endl; 247 SymTab::validate( translationUnit, false ); 248 ControlStruct::mutate( translationUnit ); 249 CodeGen::fixNames( translationUnit ); 250 ResolvExpr::resolve( translationUnit ); 251 GenPoly::copyParams( translationUnit ); 252 GenPoly::convertSpecializations( translationUnit ); 253 GenPoly::convertLvalue( translationUnit ); 254 GenPoly::box( translationUnit ); 255 printAll( translationUnit, std::cout ); 256 return 0; 257 } // if 236 258 237 259 //std::cerr << "before validate" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.