Changeset fa2c005 for src/Common/PassVisitor.proto.h
- Timestamp:
- Jun 8, 2023, 3:19:43 PM (12 months ago)
- Branches:
- ADT
- Parents:
- 044ae62
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.proto.h
r044ae62 rfa2c005 256 256 cloneAll( decl->parameters, fwd->parameters ); 257 257 258 // Experimental259 for ( const StructDecl * ctor : fwd->data_constructors ) {260 indexer_impl_addStructFwd( pass, 0, ctor );261 }262 263 258 pass.indexer.addAdt( fwd ); 264 259 } … … 288 283 289 284 template<typename pass_type> 285 static inline auto indexer_impl_addAdt( pass_type & pass, int, const std::string & str ) -> decltype( pass.indexer.addAdt( str ), void() ) { 286 assert( false ); 287 if ( ! pass.indexer.lookupAdt( str )) { 288 pass.indexer.addAdt( str ); 289 } 290 } 291 292 template<typename pass_type> 293 static inline auto indexer_impl_addAdt( pass_type &, long, const std::string & ) { 294 assert( false ); 295 } 296 297 template<typename pass_type> 290 298 static inline auto indexer_impl_addUnion( pass_type & pass, int, const std::string & str ) -> decltype( pass.indexer.addUnion( str ), void() ) { 291 299 if ( ! pass.indexer.lookupUnion( str ) ) {
Note: See TracChangeset
for help on using the changeset viewer.