mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Use ArrayRef instead of an explicit vector type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156755 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9a73bbdd7
commit
c6db6b6f26
@ -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
Block a user