Changeset 71f4e4f for src/main.cc
- Timestamp:
- Jan 13, 2016, 5:19:47 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, with_gc
- Children:
- f1e012b
- Parents:
- 02c7d04
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r02c7d04 r71f4e4f 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // main.cc -- 7 // main.cc -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Fri May 15 23:12:02 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Thu Dec 17 12:59:06 201513 // Update Count : 1 7911 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Jan 13 16:47:25 2016 13 // Update Count : 181 14 14 // 15 15 … … 42 42 #include "InitTweak/Mutate.h" 43 43 #include "InitTweak/RemoveInit.h" 44 #include "InitTweak/FixInit.h" 44 45 //#include "Explain/GenProlog.h" 45 46 //#include "Try/Visit.h" … … 99 100 100 101 opterr = 0; // prevent getopt from printing error messages 101 102 102 103 int c; 103 104 while ( (c = getopt_long( argc, argv, "abefglnpqrsvyzD:", long_opts, &long_index )) != -1 ) { … … 182 183 output = new ofstream( argv[ optind ] ); 183 184 } // if 184 185 185 186 Parser::get_parser().set_debug( grammarp ); 186 187 … … 203 204 exit( 1 ); 204 205 } // if 205 206 206 207 parse( prelude, LinkageSpec::Intrinsic ); 207 208 } // if 208 209 } // if 209 210 210 parse( input, libcfap ? LinkageSpec::Intrinsic : LinkageSpec::Cforall, grammarp ); 211 211 parse( input, libcfap ? LinkageSpec::Intrinsic : LinkageSpec::Cforall, grammarp ); 212 212 213 if ( parsep ) { 213 214 Parser::get_parser().get_parseTree()->printList( std::cout ); … … 244 245 OPTPRINT( "mutate" ) 245 246 ControlStruct::mutate( translationUnit ); 246 OPTPRINT( "fixNames" ) 247 OPTPRINT( "fixNames" ) 247 248 CodeGen::fixNames( translationUnit ); 248 249 OPTPRINT( "tweak" ) … … 264 265 dump( translationUnit ); 265 266 } 267 268 // fix ObjectDecl - replaces ConstructorInit nodes 269 InitTweak::fix( translationUnit ); 266 270 267 271 OPTPRINT( "instantiateGeneric" ) … … 331 335 std::list< Declaration * > decls; 332 336 if ( noprotop ) { 333 filter( translationUnit.begin(), translationUnit.end(), 337 filter( translationUnit.begin(), translationUnit.end(), 334 338 std::back_inserter( decls ), notPrelude ); 335 339 } else {
Note: See TracChangeset
for help on using the changeset viewer.