aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-06-03 01:20:02 +0000
committerDevang Patel <dpatel@apple.com>2008-06-03 01:20:02 +0000
commitfc80a90a99517976b7c337a969b31fe119ebb963 (patch)
tree208ec6acd0428846cc88d7fb48987e79def44a67 /lib
parente3d488a6381e89f8979019038f36a2ca11450b03 (diff)
downloadexternal_llvm-fc80a90a99517976b7c337a969b31fe119ebb963.zip
external_llvm-fc80a90a99517976b7c337a969b31fe119ebb963.tar.gz
external_llvm-fc80a90a99517976b7c337a969b31fe119ebb963.tar.bz2
"Unable to schedule <A> required by <B>" is more helpful then
"Unable to handle Pass that requires lower level Analysis pass" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/PassManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index 8b525f6..b44e10d 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/lib/VMCore/PassManager.cpp
@@ -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