src/passmanager.cc
/**
     * @brief   Searches for the pass with the given name
     * @param   passName String representing the name of the pass to be found
     * @return   AbstracPass Object reference to the pass 
     */
@brief   Searches for the pass with the given name
@param   passName String representing the name of the pass to be found
@return   AbstracPass Object reference to the pass
@brief Searches for the pass with the given name @param passName String representing the name of the pass to be found @return AbstracPass Object reference to the pass
AbstractPass* PassManager::findPass(std::string passName)
{
    DOUT("In PassManager::findPass");
    AbstractPass *pass;
    bool passFound = false;
    std::list<class AbstractPass*>::iterator it;
    for( it = passes.begin(); it != passes.end(); ++it)
    {
        if((*it)->getPassName() == passName)
        {
            DOUT(" Found pass " << passName);
            pass = (*it);
            passFound = true;
            break;
        }
    }
    if(!passFound)
    {
        EOUT("!!!Error: Pass " << passName << " not found!");
        exit(1);
    }
    return pass;    
}
AbstractPass * PassManager :: findPass ( std :: string passName ) { DOUT ( " " ) ; AbstractPass * pass ; bool passFound = false ; std :: list < class AbstractPass * > :: iterator it ; for ( it = passes . begin ( ) ; it != passes . end ( ) ; ++ it ) { if ( ( * it ) -> getPassName ( ) == passName ) { DOUT ( " " << passName ) ; pass = ( * it ) ; passFound = true ; break ; } } if ( ! passFound ) { EOUT ( " " << passName << " " ) ; exit ( 1 ) ; } return pass ; }
@brief   Searches for the pass with the given name
 @param   passName String representing the name of the pass to be found
 @return   AbstracPass Object reference to the pass
@brief Searches for the pass with the given name @param passName String representing the name of the pass to be found @return AbstracPass Object reference to the pass