Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Indexer.cc

    r2ae171d8 r6d49ea3  
    2323#include <utility>                 // for pair, make_pair, move
    2424
    25 #include "CodeGen/OperatorTable.h" // for isCtorDtor, isCtorDtorAssign
    2625#include "Common/SemanticError.h"  // for SemanticError
    2726#include "Common/utility.h"        // for cloneAll
     
    112111        void Indexer::removeSpecialOverrides( const std::string &id, std::list< DeclarationWithType * > & out ) const {
    113112                // only need to perform this step for constructors, destructors, and assignment functions
    114                 if ( ! CodeGen::isCtorDtorAssign( id ) ) return;
     113                if ( ! InitTweak::isCtorDtorAssign( id ) ) return;
    115114
    116115                // helpful data structure
     
    140139                                decls.push_back( DeclBall{ function, isUserDefinedFunc, isDefaultCtor, isDtor, isCopyFunc } );
    141140                                existsUserDefinedFunc = existsUserDefinedFunc || isUserDefinedFunc;
    142                                 existsUserDefinedCtor = existsUserDefinedCtor || (isUserDefinedFunc && CodeGen::isConstructor( function->get_name() ) );
     141                                existsUserDefinedCtor = existsUserDefinedCtor || (isUserDefinedFunc && InitTweak::isConstructor( function->get_name() ) );
    143142                                existsUserDefinedDtor = existsUserDefinedDtor || (isUserDefinedFunc && isDtor);
    144143                                existsUserDefinedCopyFunc = existsUserDefinedCopyFunc || (isUserDefinedFunc && isCopyFunc);
     
    158157                                assert( ! params.empty() );
    159158                                // 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();
    162160                                funcMap[ Mangler::mangle( base ) ] += function;
    163161                        } else {
     
    345343                leaveScope();
    346344
    347                 debugPrint( "Adding trait " << aggregateDecl->get_name() << std::endl );
     345                debugPrint( "Adding context " << aggregateDecl->get_name() << std::endl );
    348346                addTrait( aggregateDecl );
    349347        }
Note: See TracChangeset for help on using the changeset viewer.