Changes in src/AST/Util.cpp [33b7d49:f69fac7]
- File:
-
- 1 edited
-
src/AST/Util.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Util.cpp
r33b7d49 rf69fac7 10 10 // Created On : Wed Jan 19 9:46:00 2022 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Mar 11 18:07:00 202213 // Update Count : 112 // Last Modified On : Fri Feb 18 9:42:00 2022 13 // Update Count : 0 14 14 // 15 15 16 16 #include "Util.hpp" 17 17 18 #include "Decl.hpp" 18 19 #include "Node.hpp" 19 #include "ParseNode.hpp"20 20 #include "Pass.hpp" 21 21 #include "TranslationUnit.hpp" 22 #include "Common/ScopedMap.h" 22 23 23 24 #include <vector> … … 45 46 }; 46 47 47 /// Check that every note that can has a set CodeLocation.48 struct SetCodeLocationsCore {49 void previsit( const ParseNode * node ) {50 assert( node->location.isSet() );51 }52 };53 54 48 struct InvariantCore { 55 49 // To save on the number of visits: this is a kind of composed core. 56 50 // None of the passes should make changes so ordering doesn't matter. 57 51 NoStrongCyclesCore no_strong_cycles; 58 SetCodeLocationsCore set_code_locations;59 52 60 53 void previsit( const Node * node ) { 61 54 no_strong_cycles.previsit( node ); 62 }63 64 void previsit( const ParseNode * node ) {65 no_strong_cycles.previsit( node );66 set_code_locations.previsit( node );67 55 } 68 56
Note:
See TracChangeset
for help on using the changeset viewer.