Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Util.cpp

    r33b7d49 rf69fac7  
    1010// Created On       : Wed Jan 19  9:46:00 2022
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Fri Mar 11 18:07:00 2022
    13 // Update Count     : 1
     12// Last Modified On : Fri Feb 18  9:42:00 2022
     13// Update Count     : 0
    1414//
    1515
    1616#include "Util.hpp"
    1717
     18#include "Decl.hpp"
    1819#include "Node.hpp"
    19 #include "ParseNode.hpp"
    2020#include "Pass.hpp"
    2121#include "TranslationUnit.hpp"
     22#include "Common/ScopedMap.h"
    2223
    2324#include <vector>
     
    4546};
    4647
    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 
    5448struct InvariantCore {
    5549        // To save on the number of visits: this is a kind of composed core.
    5650        // None of the passes should make changes so ordering doesn't matter.
    5751        NoStrongCyclesCore no_strong_cycles;
    58         SetCodeLocationsCore set_code_locations;
    5952
    6053        void previsit( const Node * node ) {
    6154                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 );
    6755        }
    6856
Note: See TracChangeset for help on using the changeset viewer.