Changes in src/GenPoly/ScrubTyVars.h [3606fe4:b8a4f47]
- File:
-
- 1 edited
-
src/GenPoly/ScrubTyVars.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/ScrubTyVars.h
r3606fe4 rb8a4f47 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Fri Aug 19 14:14:00 202213 // Update Count : 311 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 22 09:21:47 2017 13 // Update Count : 2 14 14 // 15 15 … … 18 18 #include <cassert> // for assert 19 19 20 #include "AST/Fwd.hpp" // for Node21 20 #include "Common/PassVisitor.h" 22 21 #include "GenPoly.h" // for TyVarMap, isPolyType, isDynType … … 109 108 } 110 109 111 /// For all polymorphic types, replaces generic types, with the appropriate112 /// void type, and sizeof/alignof expressions with the proper variable.113 template<typename node_t>114 node_t const * scrubAllTypeVars( node_t const * target ) {115 return strict_dynamic_cast<node_t const *>( scrubAllTypeVars<ast::Node>( target ) );116 }117 118 template<>119 ast::Node const * scrubAllTypeVars<ast::Node>( const ast::Node * target );120 121 110 } // namespace GenPoly 122 111
Note:
See TracChangeset
for help on using the changeset viewer.