forked from OSchip/llvm-project
Use ArrayRef instead of an explicit vector type.
llvm-svn: 156755
This commit is contained in:
parent
e8f2cdf891
commit
ea857e1b9f
|
@ -15,6 +15,7 @@
|
|||
#define LLVM_PASSMANAGERS_H
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
@ -184,7 +185,7 @@ public:
|
|||
void schedulePass(Pass *P);
|
||||
|
||||
/// Set pass P as the last user of the given analysis passes.
|
||||
void setLastUser(const SmallVectorImpl<Pass *> &AnalysisPasses, Pass *P);
|
||||
void setLastUser(ArrayRef<Pass*> AnalysisPasses, Pass *P);
|
||||
|
||||
/// Collect passes whose last user is P
|
||||
void collectLastUses(SmallVectorImpl<Pass *> &LastUses, Pass *P);
|
||||
|
|
|
@ -478,8 +478,7 @@ PMTopLevelManager::PMTopLevelManager(PMDataManager *PMDM) {
|
|||
|
||||
/// Set pass P as the last user of the given analysis passes.
|
||||
void
|
||||
PMTopLevelManager::setLastUser(const SmallVectorImpl<Pass *> &AnalysisPasses,
|
||||
Pass *P) {
|
||||
PMTopLevelManager::setLastUser(ArrayRef<Pass*> AnalysisPasses, Pass *P) {
|
||||
unsigned PDepth = 0;
|
||||
if (P->getResolver())
|
||||
PDepth = P->getResolver()->getPMDataManager().getDepth();
|
||||
|
|
Loading…
Reference in New Issue