Changes in src/SymTab/Indexer.cc [2ae171d8:6d49ea3]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.cc
r2ae171d8 r6d49ea3 23 23 #include <utility> // for pair, make_pair, move 24 24 25 #include "CodeGen/OperatorTable.h" // for isCtorDtor, isCtorDtorAssign26 25 #include "Common/SemanticError.h" // for SemanticError 27 26 #include "Common/utility.h" // for cloneAll … … 112 111 void Indexer::removeSpecialOverrides( const std::string &id, std::list< DeclarationWithType * > & out ) const { 113 112 // only need to perform this step for constructors, destructors, and assignment functions 114 if ( ! CodeGen::isCtorDtorAssign( id ) ) return;113 if ( ! InitTweak::isCtorDtorAssign( id ) ) return; 115 114 116 115 // helpful data structure … … 140 139 decls.push_back( DeclBall{ function, isUserDefinedFunc, isDefaultCtor, isDtor, isCopyFunc } ); 141 140 existsUserDefinedFunc = existsUserDefinedFunc || isUserDefinedFunc; 142 existsUserDefinedCtor = existsUserDefinedCtor || (isUserDefinedFunc && CodeGen::isConstructor( function->get_name() ) );141 existsUserDefinedCtor = existsUserDefinedCtor || (isUserDefinedFunc && InitTweak::isConstructor( function->get_name() ) ); 143 142 existsUserDefinedDtor = existsUserDefinedDtor || (isUserDefinedFunc && isDtor); 144 143 existsUserDefinedCopyFunc = existsUserDefinedCopyFunc || (isUserDefinedFunc && isCopyFunc); … … 158 157 assert( ! params.empty() ); 159 158 // use base type of pointer, so that qualifiers on the pointer type aren't considered. 160 Type * base = InitTweak::getPointerBase( params.front()->get_type() ); 161 assert( base ); 159 Type * base = safe_dynamic_cast< PointerType * >( params.front()->get_type() )->get_base(); 162 160 funcMap[ Mangler::mangle( base ) ] += function; 163 161 } else { … … 345 343 leaveScope(); 346 344 347 debugPrint( "Adding trait " << aggregateDecl->get_name() << std::endl );345 debugPrint( "Adding context " << aggregateDecl->get_name() << std::endl ); 348 346 addTrait( aggregateDecl ); 349 347 }
Note:
See TracChangeset
for help on using the changeset viewer.