mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
Add facility to dump pass manager structure
to make it easier to understand failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40567 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b116fac90f
commit
19fe8f907e
@ -227,10 +227,7 @@ public:
|
||||
/// Add RequiredPass into list of lower level passes required by pass P.
|
||||
/// RequiredPass is run on the fly by Pass Manager when P requests it
|
||||
/// through getAnalysis interface.
|
||||
virtual void addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) {
|
||||
assert (0 &&
|
||||
"Unable to handle Pass that requires lower level Analysis pass");
|
||||
}
|
||||
virtual void addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass);
|
||||
|
||||
virtual Pass * getOnTheFlyPass(Pass *P, const PassInfo *PI, Function &F) {
|
||||
assert (0 && "Unable to find on the fly pass");
|
||||
|
@ -907,6 +907,18 @@ void PMDataManager::dumpAnalysisSetInfo(const char *Msg, Pass *P,
|
||||
}
|
||||
}
|
||||
|
||||
/// Add RequiredPass into list of lower level passes required by pass P.
|
||||
/// RequiredPass is run on the fly by Pass Manager when P requests it
|
||||
/// through getAnalysis interface.
|
||||
/// This should be handled by specific pass manager.
|
||||
void PMDataManager::addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) {
|
||||
if (TPM) {
|
||||
TPM->dumpArguments();
|
||||
TPM->dumpPasses();
|
||||
}
|
||||
assert (0 && "Unable to handle Pass that requires lower level Analysis pass");
|
||||
}
|
||||
|
||||
// Destructor
|
||||
PMDataManager::~PMDataManager() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user