Changes in / [3271166:7ff01ff]
- Files:
-
- 107 added
- 109 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/configure
r3271166 r7ff01ff 1959 1959 1960 1960 1961 1962 1961 am__api_version='1.15' 1963 1962 -
src/CodeTools/module.mk
r3271166 r7ff01ff 16 16 17 17 SRC += CodeTools/DeclStats.cc \ 18 CodeTools/ResolvProtoDump.cc \19 18 CodeTools/TrackLoc.cc -
src/CompilationState.cc
r3271166 r7ff01ff 30 30 parsep = false, 31 31 resolvep = false, 32 resolvprotop = false,33 32 symtabp = false, 34 33 treep = false, -
src/CompilationState.h
r3271166 r7ff01ff 31 31 parsep, 32 32 resolvep, 33 resolvprotop,34 33 symtabp, 35 34 treep, -
src/Makefile.in
r3271166 r7ff01ff 221 221 CodeGen/FixNames.$(OBJEXT) CodeGen/FixMain.$(OBJEXT) \ 222 222 CodeGen/OperatorTable.$(OBJEXT) CodeTools/DeclStats.$(OBJEXT) \ 223 CodeTools/ResolvProtoDump.$(OBJEXT) \224 223 CodeTools/TrackLoc.$(OBJEXT) Concurrency/Keywords.$(OBJEXT) \ 225 224 Concurrency/Waitfor.$(OBJEXT) Common/SemanticError.$(OBJEXT) \ … … 521 520 CodeGen/FixNames.cc CodeGen/FixMain.cc \ 522 521 CodeGen/OperatorTable.cc CodeTools/DeclStats.cc \ 523 CodeTools/ResolvProtoDump.cc CodeTools/TrackLoc.cc \ 524 Concurrency/Keywords.cc Concurrency/Waitfor.cc \ 525 Common/SemanticError.cc Common/UniqueName.cc \ 526 Common/DebugMalloc.cc Common/Assert.cc Common/Heap.cc \ 527 Common/Eval.cc ControlStruct/LabelGenerator.cc \ 522 CodeTools/TrackLoc.cc Concurrency/Keywords.cc \ 523 Concurrency/Waitfor.cc Common/SemanticError.cc \ 524 Common/UniqueName.cc Common/DebugMalloc.cc Common/Assert.cc \ 525 Common/Heap.cc Common/Eval.cc ControlStruct/LabelGenerator.cc \ 528 526 ControlStruct/LabelFixer.cc ControlStruct/MLEMutator.cc \ 529 527 ControlStruct/Mutate.cc ControlStruct/ForExprMutator.cc \ … … 1001 999 CodeTools/DeclStats.$(OBJEXT): CodeTools/$(am__dirstamp) \ 1002 1000 CodeTools/$(DEPDIR)/$(am__dirstamp) 1003 CodeTools/ResolvProtoDump.$(OBJEXT): CodeTools/$(am__dirstamp) \1004 CodeTools/$(DEPDIR)/$(am__dirstamp)1005 1001 CodeTools/TrackLoc.$(OBJEXT): CodeTools/$(am__dirstamp) \ 1006 1002 CodeTools/$(DEPDIR)/$(am__dirstamp) … … 1105 1101 @AMDEP_TRUE@@am__include@ @am__quote@CodeGen/$(DEPDIR)/OperatorTable.Po@am__quote@ 1106 1102 @AMDEP_TRUE@@am__include@ @am__quote@CodeTools/$(DEPDIR)/DeclStats.Po@am__quote@ 1107 @AMDEP_TRUE@@am__include@ @am__quote@CodeTools/$(DEPDIR)/ResolvProtoDump.Po@am__quote@1108 1103 @AMDEP_TRUE@@am__include@ @am__quote@CodeTools/$(DEPDIR)/TrackLoc.Po@am__quote@ 1109 1104 @AMDEP_TRUE@@am__include@ @am__quote@Common/$(DEPDIR)/Assert.Po@am__quote@ -
src/Parser/LinkageSpec.cc
r3271166 r7ff01ff 10 10 // Created On : Sat May 16 13:22:09 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Thr Spt 12 15:59:00 201813 // Update Count : 2 612 // Last Modified On : Fri Jul 7 11:11:00 2017 13 // Update Count : 25 14 14 // 15 15 … … 23 23 24 24 namespace LinkageSpec { 25 26 Spec linkageCheck( CodeLocation location, const string * spec ) { 27 assert( spec ); 28 unique_ptr<const string> guard( spec ); // allocated by lexer 29 if ( *spec == "\"Cforall\"" ) { 30 return Cforall; 31 } else if ( *spec == "\"C\"" ) { 32 return C; 33 } else if ( *spec == "\"BuiltinC\"" ) { 34 return BuiltinC; 35 } else { 36 SemanticError( location, "Invalid linkage specifier " + *spec ); 37 } // if 38 } 25 39 26 40 Spec linkageUpdate( CodeLocation location, Spec old_spec, const string * cmd ) { -
src/Parser/LinkageSpec.h
r3271166 r7ff01ff 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:24:28 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Thr Spt 13 15:59:00201813 // Update Count : 1 711 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jul 2 07:46:49 2018 13 // Update Count : 16 14 14 // 15 15 … … 41 41 42 42 43 Spec linkageCheck( CodeLocation location, const std::string * ); 44 // Returns the Spec with the given name (limited to C, Cforall & BuiltinC) 43 45 Spec linkageUpdate( CodeLocation location, Spec old_spec, const std::string * cmd ); 44 46 /* If cmd = "C" returns a Spec that is old_spec with is_mangled = false -
src/main.cc
r3271166 r7ff01ff 34 34 #include "CodeGen/Generate.h" // for generate 35 35 #include "CodeTools/DeclStats.h" // for printDeclStats 36 #include "CodeTools/ResolvProtoDump.h" // for dumpAsResolvProto37 36 #include "CodeTools/TrackLoc.h" // for fillLocations 38 37 #include "Common/CompilerError.h" // for CompilerError … … 272 271 CodeTools::fillLocations( translationUnit ); 273 272 274 if ( resolvprotop ) {275 CodeTools::dumpAsResolvProto( translationUnit );276 return 0;277 }278 279 273 PASS( "resolve", ResolvExpr::resolve( translationUnit ) ); 280 274 if ( exprp ) { … … 382 376 383 377 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 384 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Linemarks, Nolinemarks, Nopreamble, Parse, PreludeDir, Prototypes, Resolver, ResolvProto,Symbol, Tree, TupleExpansion, Validate, };378 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Linemarks, Nolinemarks, Nopreamble, Parse, PreludeDir, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, }; 385 379 386 380 static struct option long_opts[] = { … … 401 395 { "no-prototypes", no_argument, 0, Prototypes }, 402 396 { "resolver", no_argument, 0, Resolver }, 403 { "resolv-proto", no_argument, 0, ResolvProto },404 397 { "symbol", no_argument, 0, Symbol }, 405 398 { "tree", no_argument, 0, Tree }, … … 414 407 bool Wsuppress = false, Werror = false; 415 408 int c; 416 while ( (c = getopt_long( argc, argv, "abBcCdefgGlLmnNpqr RstTvwW:yzZD:F:", long_opts, &long_index )) != -1 ) {409 while ( (c = getopt_long( argc, argv, "abBcCdefgGlLmnNpqrstTvwW:yzZD:F:", long_opts, &long_index )) != -1 ) { 417 410 switch ( c ) { 418 411 case Ast: … … 486 479 case 'r': // print resolver steps 487 480 resolvep = true; 488 break;489 case 'R': // dump resolv-proto instance490 resolvprotop = true;491 481 break; 492 482 case Symbol:
Note: See TracChangeset
for help on using the changeset viewer.