"Unable to schedule <A> required by <B>" is more helpful then

"Unable to handle Pass that requires lower level Analysis pass"

llvm-svn: 51892
This commit is contained in:
Devang Patel 2008-06-03 01:20:02 +00:00
parent bb4720c43f
commit ab85d6b6af
1 changed files with 5 additions and 1 deletions

View File

@ -930,7 +930,11 @@ void PMDataManager::addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) {
// When Pass manager is not able to order required analysis info, Pass manager
// checks whether any lower level manager will be able to provide this
// analysis info on demand or not.
assert (0 && "Unable to handle Pass that requires lower level Analysis pass");
#ifndef NDEBUG
cerr << "Unable to schedule " << RequiredPass->getPassName();
cerr << " required by " << P->getPassName() << "\n";
#endif
assert (0 && "Unable to schedule pass");
}
// Destructor