- Timestamp:
- Feb 20, 2021, 10:41:37 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 47e18f3, ee0fa3a
- Parents:
- 6cb7a92 (diff), e499381 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r6cb7a92 r7cde04e 9 9 // Author : Peter Buhr and Rob Schluntz 10 10 // Created On : Fri May 15 23:12:02 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Feb 8 21:10:16202113 // Update Count : 64 211 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Feb 19 14:59:00 2021 13 // Update Count : 643 14 14 // 15 15 … … 104 104 static void parse( FILE * input, LinkageSpec::Spec linkage, bool shouldExit = false ); 105 105 static void dump( list< Declaration * > & translationUnit, ostream & out = cout ); 106 static void dump( ast::TranslationUnit && transUnit, ostream & out = cout ); 106 107 107 108 static void backtrace( int start ) { // skip first N stack frames … … 349 350 PASS( "Resolve", ResolvExpr::resolve( transUnit ) ); 350 351 if ( exprp ) { 351 translationUnit = convert( move( transUnit ) ); 352 dump( translationUnit ); 352 dump( move( transUnit ) ); 353 353 return EXIT_SUCCESS; 354 354 } // if … … 732 732 } // dump 733 733 734 static void dump( ast::TranslationUnit && transUnit, ostream & out ) { 735 std::list< Declaration * > translationUnit = convert( move( transUnit ) ); 736 dump( translationUnit, out ); 737 } 738 734 739 // Local Variables: // 735 740 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.