- Timestamp:
- Jan 31, 2017, 4:55:59 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 511aa69a, fa2de95
- Parents:
- a9fc180
- Location:
- src
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Makefile.am
ra9fc180 r41a7137 26 26 27 27 include CodeGen/module.mk 28 include CodeTools/module.mk 28 29 include Common/module.mk 29 30 include ControlStruct/module.mk -
src/Makefile.in
ra9fc180 r41a7137 24 24 #SRC += ArgTweak/Rewriter.cc \ 25 25 # ArgTweak/Mutate.cc 26 27 ######################### -*- Mode: Makefile-Gmake -*- ######################## 28 ############################################################################### 26 29 27 30 ######################### -*- Mode: Makefile-Gmake -*- ######################## … … 71 74 build_triplet = @build@ 72 75 host_triplet = @host@ 73 DIST_COMMON = $(srcdir)/CodeGen/module.mk $(srcdir)/Common/module.mk \ 76 DIST_COMMON = $(srcdir)/CodeGen/module.mk \ 77 $(srcdir)/CodeTools/module.mk $(srcdir)/Common/module.mk \ 74 78 $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk \ 75 79 $(srcdir)/InitTweak/module.mk $(srcdir)/Makefile.am \ … … 99 103 CodeGen/driver_cfa_cpp-FixMain.$(OBJEXT) \ 100 104 CodeGen/driver_cfa_cpp-OperatorTable.$(OBJEXT) \ 105 CodeTools/driver_cfa_cpp-DeclStats.$(OBJEXT) \ 101 106 Common/driver_cfa_cpp-SemanticError.$(OBJEXT) \ 102 107 Common/driver_cfa_cpp-UniqueName.$(OBJEXT) \ … … 376 381 CodeGen/CodeGenerator.cc CodeGen/GenType.cc \ 377 382 CodeGen/FixNames.cc CodeGen/FixMain.cc \ 378 CodeGen/OperatorTable.cc Common/SemanticError.cc \ 379 Common/UniqueName.cc Common/DebugMalloc.cc Common/Assert.cc \ 383 CodeGen/OperatorTable.cc CodeTools/DeclStats.cc \ 384 Common/SemanticError.cc Common/UniqueName.cc \ 385 Common/DebugMalloc.cc Common/Assert.cc \ 380 386 ControlStruct/LabelGenerator.cc ControlStruct/LabelFixer.cc \ 381 387 ControlStruct/MLEMutator.cc ControlStruct/Mutate.cc \ … … 440 446 .SUFFIXES: 441 447 .SUFFIXES: .cc .ll .o .obj .yy 442 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/CodeGen/module.mk $(srcdir)/Co mmon/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk $(am__configure_deps)448 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/CodeGen/module.mk $(srcdir)/CodeTools/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk $(am__configure_deps) 443 449 @for dep in $?; do \ 444 450 case '$(am__configure_deps)' in \ … … 461 467 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 462 468 esac; 463 $(srcdir)/CodeGen/module.mk $(srcdir)/Co mmon/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk:469 $(srcdir)/CodeGen/module.mk $(srcdir)/CodeTools/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk: 464 470 465 471 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) … … 526 532 CodeGen/driver_cfa_cpp-OperatorTable.$(OBJEXT): \ 527 533 CodeGen/$(am__dirstamp) CodeGen/$(DEPDIR)/$(am__dirstamp) 534 CodeTools/$(am__dirstamp): 535 @$(MKDIR_P) CodeTools 536 @: > CodeTools/$(am__dirstamp) 537 CodeTools/$(DEPDIR)/$(am__dirstamp): 538 @$(MKDIR_P) CodeTools/$(DEPDIR) 539 @: > CodeTools/$(DEPDIR)/$(am__dirstamp) 540 CodeTools/driver_cfa_cpp-DeclStats.$(OBJEXT): \ 541 CodeTools/$(am__dirstamp) CodeTools/$(DEPDIR)/$(am__dirstamp) 528 542 Common/$(am__dirstamp): 529 543 @$(MKDIR_P) Common … … 813 827 -rm -f CodeGen/driver_cfa_cpp-Generate.$(OBJEXT) 814 828 -rm -f CodeGen/driver_cfa_cpp-OperatorTable.$(OBJEXT) 829 -rm -f CodeTools/driver_cfa_cpp-DeclStats.$(OBJEXT) 815 830 -rm -f Common/driver_cfa_cpp-Assert.$(OBJEXT) 816 831 -rm -f Common/driver_cfa_cpp-DebugMalloc.$(OBJEXT) … … 922 937 @AMDEP_TRUE@@am__include@ @am__quote@CodeGen/$(DEPDIR)/driver_cfa_cpp-Generate.Po@am__quote@ 923 938 @AMDEP_TRUE@@am__include@ @am__quote@CodeGen/$(DEPDIR)/driver_cfa_cpp-OperatorTable.Po@am__quote@ 939 @AMDEP_TRUE@@am__include@ @am__quote@CodeTools/$(DEPDIR)/driver_cfa_cpp-DeclStats.Po@am__quote@ 924 940 @AMDEP_TRUE@@am__include@ @am__quote@Common/$(DEPDIR)/driver_cfa_cpp-Assert.Po@am__quote@ 925 941 @AMDEP_TRUE@@am__include@ @am__quote@Common/$(DEPDIR)/driver_cfa_cpp-DebugMalloc.Po@am__quote@ … … 1148 1164 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o CodeGen/driver_cfa_cpp-OperatorTable.obj `if test -f 'CodeGen/OperatorTable.cc'; then $(CYGPATH_W) 'CodeGen/OperatorTable.cc'; else $(CYGPATH_W) '$(srcdir)/CodeGen/OperatorTable.cc'; fi` 1149 1165 1166 CodeTools/driver_cfa_cpp-DeclStats.o: CodeTools/DeclStats.cc 1167 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT CodeTools/driver_cfa_cpp-DeclStats.o -MD -MP -MF CodeTools/$(DEPDIR)/driver_cfa_cpp-DeclStats.Tpo -c -o CodeTools/driver_cfa_cpp-DeclStats.o `test -f 'CodeTools/DeclStats.cc' || echo '$(srcdir)/'`CodeTools/DeclStats.cc 1168 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) CodeTools/$(DEPDIR)/driver_cfa_cpp-DeclStats.Tpo CodeTools/$(DEPDIR)/driver_cfa_cpp-DeclStats.Po 1169 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='CodeTools/DeclStats.cc' object='CodeTools/driver_cfa_cpp-DeclStats.o' libtool=no @AMDEPBACKSLASH@ 1170 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1171 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o CodeTools/driver_cfa_cpp-DeclStats.o `test -f 'CodeTools/DeclStats.cc' || echo '$(srcdir)/'`CodeTools/DeclStats.cc 1172 1173 CodeTools/driver_cfa_cpp-DeclStats.obj: CodeTools/DeclStats.cc 1174 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT CodeTools/driver_cfa_cpp-DeclStats.obj -MD -MP -MF CodeTools/$(DEPDIR)/driver_cfa_cpp-DeclStats.Tpo -c -o CodeTools/driver_cfa_cpp-DeclStats.obj `if test -f 'CodeTools/DeclStats.cc'; then $(CYGPATH_W) 'CodeTools/DeclStats.cc'; else $(CYGPATH_W) '$(srcdir)/CodeTools/DeclStats.cc'; fi` 1175 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) CodeTools/$(DEPDIR)/driver_cfa_cpp-DeclStats.Tpo CodeTools/$(DEPDIR)/driver_cfa_cpp-DeclStats.Po 1176 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='CodeTools/DeclStats.cc' object='CodeTools/driver_cfa_cpp-DeclStats.obj' libtool=no @AMDEPBACKSLASH@ 1177 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1178 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o CodeTools/driver_cfa_cpp-DeclStats.obj `if test -f 'CodeTools/DeclStats.cc'; then $(CYGPATH_W) 'CodeTools/DeclStats.cc'; else $(CYGPATH_W) '$(srcdir)/CodeTools/DeclStats.cc'; fi` 1179 1150 1180 Common/driver_cfa_cpp-SemanticError.o: Common/SemanticError.cc 1151 1181 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Common/driver_cfa_cpp-SemanticError.o -MD -MP -MF Common/$(DEPDIR)/driver_cfa_cpp-SemanticError.Tpo -c -o Common/driver_cfa_cpp-SemanticError.o `test -f 'Common/SemanticError.cc' || echo '$(srcdir)/'`Common/SemanticError.cc … … 2631 2661 -rm -f CodeGen/$(DEPDIR)/$(am__dirstamp) 2632 2662 -rm -f CodeGen/$(am__dirstamp) 2663 -rm -f CodeTools/$(DEPDIR)/$(am__dirstamp) 2664 -rm -f CodeTools/$(am__dirstamp) 2633 2665 -rm -f Common/$(DEPDIR)/$(am__dirstamp) 2634 2666 -rm -f Common/$(am__dirstamp) … … 2664 2696 2665 2697 distclean: distclean-am 2666 -rm -rf ./$(DEPDIR) CodeGen/$(DEPDIR) Co mmon/$(DEPDIR) ControlStruct/$(DEPDIR) GenPoly/$(DEPDIR) InitTweak/$(DEPDIR) Parser/$(DEPDIR) ResolvExpr/$(DEPDIR) SymTab/$(DEPDIR) SynTree/$(DEPDIR) Tuples/$(DEPDIR)2698 -rm -rf ./$(DEPDIR) CodeGen/$(DEPDIR) CodeTools/$(DEPDIR) Common/$(DEPDIR) ControlStruct/$(DEPDIR) GenPoly/$(DEPDIR) InitTweak/$(DEPDIR) Parser/$(DEPDIR) ResolvExpr/$(DEPDIR) SymTab/$(DEPDIR) SynTree/$(DEPDIR) Tuples/$(DEPDIR) 2667 2699 -rm -f Makefile 2668 2700 distclean-am: clean-am distclean-compile distclean-generic \ … … 2710 2742 2711 2743 maintainer-clean: maintainer-clean-am 2712 -rm -rf ./$(DEPDIR) CodeGen/$(DEPDIR) Co mmon/$(DEPDIR) ControlStruct/$(DEPDIR) GenPoly/$(DEPDIR) InitTweak/$(DEPDIR) Parser/$(DEPDIR) ResolvExpr/$(DEPDIR) SymTab/$(DEPDIR) SynTree/$(DEPDIR) Tuples/$(DEPDIR)2744 -rm -rf ./$(DEPDIR) CodeGen/$(DEPDIR) CodeTools/$(DEPDIR) Common/$(DEPDIR) ControlStruct/$(DEPDIR) GenPoly/$(DEPDIR) InitTweak/$(DEPDIR) Parser/$(DEPDIR) ResolvExpr/$(DEPDIR) SymTab/$(DEPDIR) SynTree/$(DEPDIR) Tuples/$(DEPDIR) 2713 2745 -rm -f Makefile 2714 2746 maintainer-clean-am: distclean-am maintainer-clean-generic -
src/main.cc
ra9fc180 r41a7137 35 35 #include "CodeGen/FixNames.h" 36 36 #include "CodeGen/FixMain.h" 37 #include "CodeTools/DeclStats.h" 37 38 #include "ControlStruct/Mutate.h" 38 39 #include "SymTab/Validate.h" … … 61 62 bboxp = false, 62 63 ctorinitp = false, 64 declstatsp = false, 63 65 exprp = false, 64 66 expraltp = false, … … 212 214 } // if 213 215 216 if ( declstatsp ) { 217 CodeTools::printDeclStats( translationUnit ); 218 deleteAll( translationUnit ); 219 return 0; 220 } 221 214 222 // add the assignment statement after the initialization of a type parameter 215 223 OPTPRINT( "validate" ) … … 339 347 340 348 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 341 enum { Ast, Bbox, Bresolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, };349 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, }; 342 350 343 351 static struct option long_opts[] = { … … 346 354 { "before-resolver", no_argument, 0, Bresolver }, 347 355 { "ctorinitfix", no_argument, 0, CtorInitFix }, 356 { "decl-stats", no_argument, 0, DeclStats }, 348 357 { "expr", no_argument, 0, Expr }, 349 358 { "expralt", no_argument, 0, ExprAlt }, … … 365 374 366 375 int c; 367 while ( (c = getopt_long( argc, argv, "abBc efglmnpqrstTvyzD:F:", long_opts, &long_index )) != -1 ) {376 while ( (c = getopt_long( argc, argv, "abBcdefglmnpqrstTvyzD:F:", long_opts, &long_index )) != -1 ) { 368 377 switch ( c ) { 369 378 case Ast: … … 381 390 case 'c': 382 391 ctorinitp = true; 392 break; 393 case DeclStats: 394 case 'd': 395 declstatsp = true; 383 396 break; 384 397 case Expr:
Note: See TracChangeset
for help on using the changeset viewer.