mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 13:20:29 +00:00
fit in 80 cols
llvm-svn: 32563
This commit is contained in:
parent
58ac5db67f
commit
e8d97c0b07
@ -213,10 +213,9 @@ AnalysisType &Pass::getAnalysis() const {
|
||||
#ifdef USE_OLD_PASSMANAGER
|
||||
assert(Resolver && "Pass has not been inserted into a PassManager object!");
|
||||
#else
|
||||
assert(Resolver_New && "Pass has not been inserted into a PassManager object!");
|
||||
assert(Resolver_New&&"Pass has not been inserted into a PassManager object!");
|
||||
#endif
|
||||
const PassInfo *PI = getClassPassInfo<AnalysisType>();
|
||||
return getAnalysisID<AnalysisType>(PI);
|
||||
return getAnalysisID<AnalysisType>(getClassPassInfo<AnalysisType>());
|
||||
}
|
||||
|
||||
template<typename AnalysisType>
|
||||
@ -239,7 +238,7 @@ AnalysisType &Pass::getAnalysisID(const PassInfo *PI) const {
|
||||
}
|
||||
}
|
||||
#else
|
||||
assert(Resolver_New && "Pass has not been inserted into a PassManager object!");
|
||||
assert(Resolver_New&&"Pass has not been inserted into a PassManager object!");
|
||||
// PI *must* appear in AnalysisImpls. Because the number of passes used
|
||||
// should be a small number, we just do a linear search over a (dense)
|
||||
// vector.
|
||||
|
@ -366,10 +366,10 @@ public:
|
||||
//===----------------------------------------------------------------------===//
|
||||
// FunctionPassManagerImpl_New
|
||||
//
|
||||
/// FunctionPassManagerImpl_New manages FunctionPasses and BasicBlockPassManagers.
|
||||
/// It batches all function passes and basic block pass managers together and
|
||||
/// sequence them to process one function at a time before processing next
|
||||
/// function.
|
||||
/// FunctionPassManagerImpl_New manages FunctionPasses and
|
||||
/// BasicBlockPassManagers. It batches all function passes and basic block pass
|
||||
/// managers together and sequence them to process one function at a time before
|
||||
/// processing next function.
|
||||
class FunctionPassManagerImpl_New : public ModulePass,
|
||||
public PMDataManager,
|
||||
public PMTopLevelManager {
|
||||
@ -1184,8 +1184,9 @@ ModulePassManager::addPass(Pass *P) {
|
||||
activeFunctionPassManager->setTopLevelManager(this->getTopLevelManager());
|
||||
|
||||
// Add new manager into top level manager's indirect passes list
|
||||
PMDataManager *PMD = dynamic_cast<PMDataManager *>(activeFunctionPassManager);
|
||||
assert (PMD && "Manager is not Pass Manager");
|
||||
PMDataManager *PMD =
|
||||
dynamic_cast<PMDataManager *>(activeFunctionPassManager);
|
||||
assert(PMD && "Manager is not Pass Manager");
|
||||
TPM->addIndirectPassManager(PMD);
|
||||
|
||||
// Add pass into new manager. This time it must succeed.
|
||||
|
Loading…
Reference in New Issue
Block a user