Changes in src/main.cc [ea5daeb:35f9114]
- File:
-
- 1 edited
-
src/main.cc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
rea5daeb r35f9114 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 5 15:23:11 201613 // Update Count : 2 0912 // Last Modified On : Sat Aug 6 16:17:41 2016 13 // Update Count : 210 14 14 // 15 15 … … 43 43 #include "InitTweak/GenInit.h" 44 44 #include "InitTweak/FixInit.h" 45 #include "InitTweak/FixGlobalInit.h"46 45 //#include "Explain/GenProlog.h" 47 46 //#include "Try/Visit.h" … … 194 193 input = fopen( argv[ optind ], "r" ); 195 194 if ( ! input ) { 196 std::cout << "Error: can 't open " << argv[ optind ] << std::endl;195 std::cout << "Error: cannot open " << argv[ optind ] << std::endl; 197 196 exit( EXIT_FAILURE ); 198 197 } // if … … 220 219 FILE * builtins = fopen( libcfap | treep ? "builtins.cf" : CFA_LIBDIR "/builtins.cf", "r" ); 221 220 if ( builtins == NULL ) { 222 std::cerr << "Error: can 't open builtins.cf" << std::endl;221 std::cerr << "Error: cannot open builtins.cf" << std::endl; 223 222 exit( EXIT_FAILURE ); 224 223 } // if … … 228 227 FILE * extras = fopen( libcfap | treep ? "extras.cf" : CFA_LIBDIR "/extras.cf", "r" ); 229 228 if ( extras == NULL ) { 230 std::cerr << "Error: can 't open extras.cf" << std::endl;229 std::cerr << "Error: cannot open extras.cf" << std::endl; 231 230 exit( EXIT_FAILURE ); 232 231 } // if … … 237 236 FILE * prelude = fopen( treep ? "prelude.cf" : CFA_LIBDIR "/prelude.cf", "r" ); 238 237 if ( prelude == NULL ) { 239 std::cerr << "Error: can 't open prelude.cf" << std::endl;238 std::cerr << "Error: cannot open prelude.cf" << std::endl; 240 239 exit( EXIT_FAILURE ); 241 240 } // if … … 283 282 OPTPRINT( "fixNames" ) 284 283 CodeGen::fixNames( translationUnit ); 285 OPTPRINT( "fixGlobalInit" );286 InitTweak::fixGlobalInit( translationUnit, filename, libcfap || treep );287 284 OPTPRINT( "tweakInit" ) 288 285 InitTweak::genInit( translationUnit ); … … 305 302 } 306 303 304 // fix ObjectDecl - replaces ConstructorInit nodes 307 305 OPTPRINT( "fixInit" ) 308 // fix ObjectDecl - replaces ConstructorInit nodes 309 InitTweak::fix( translationUnit ); 306 InitTweak::fix( translationUnit, filename, libcfap || treep ); 310 307 if ( ctorinitp ) { 311 308 dump ( translationUnit );
Note:
See TracChangeset
for help on using the changeset viewer.