Changes in src/Common/PassVisitor.h [47498bd:712348a]
- File:
-
- 1 edited
-
src/Common/PassVisitor.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.h
r47498bd r712348a 4 4 5 5 #include <stack> 6 6 #include <type_traits> 7 8 #include "Common/Stats.h" 7 9 #include "Common/utility.h" 8 10 … … 153 155 virtual void visit( ConstructorInit * ctorInit ) override final; 154 156 155 virtual void visit( Subrange * subrange ) override final;156 157 157 virtual void visit( Constant * constant ) override final; 158 158 … … 255 255 virtual Initializer * mutate( ConstructorInit * ctorInit ) override final; 256 256 257 virtual Subrange * mutate( Subrange * subrange ) override final;258 259 257 virtual Constant * mutate( Constant * constant ) override final; 260 258 … … 300 298 301 299 302 TypeSubstitution ** get_env_ptr () { return env_impl( pass, 0); }300 auto get_env_ptr () -> decltype(env_impl( pass, 0)) { return env_impl( pass, 0); } 303 301 std::list< Statement* > * get_beforeStmts() { return stmtsToAddBefore_impl( pass, 0); } 304 302 std::list< Statement* > * get_afterStmts () { return stmtsToAddAfter_impl ( pass, 0); } … … 347 345 }; 348 346 347 class WithConstTypeSubstitution { 348 protected: 349 WithConstTypeSubstitution() = default; 350 ~WithConstTypeSubstitution() = default; 351 352 public: 353 const TypeSubstitution * env = nullptr; 354 }; 355 349 356 class WithStmtsToAdd { 350 357 protected: … … 426 433 }; 427 434 435 #include "Common/Stats.h" 436 437 extern struct PassVisitorStats { 438 size_t depth = 0; 439 Stats::Counters::MaxCounter<double> * max = nullptr; 440 Stats::Counters::AverageCounter<double> * avg = nullptr; 441 } pass_visitor_stats; 442 428 443 #include "SynTree/TypeSubstitution.h" 429 444 #include "PassVisitor.impl.h"
Note:
See TracChangeset
for help on using the changeset viewer.