diff options
Diffstat (limited to 'include/llvm/PassManagers.h')
-rw-r--r-- | include/llvm/PassManagers.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index 17f4a0592f..1f00b3ebce 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -184,10 +184,10 @@ public: void schedulePass(Pass *P); /// Set pass P as the last user of the given analysis passes. - void setLastUser(SmallVector<Pass *, 12> &AnalysisPasses, Pass *P); + void setLastUser(SmallVectorImpl<Pass *> &AnalysisPasses, Pass *P); /// Collect passes whose last user is P - void collectLastUses(SmallVector<Pass *, 12> &LastUses, Pass *P); + void collectLastUses(SmallVectorImpl<Pass *> &LastUses, Pass *P); /// Find the pass that implements Analysis AID. Search immutable /// passes and all pass managers. If desired pass is not found @@ -205,7 +205,7 @@ public: ImmutablePasses.push_back(P); } - inline SmallVector<ImmutablePass *, 8>& getImmutablePasses() { + inline SmallVectorImpl<ImmutablePass *>& getImmutablePasses() { return ImmutablePasses; } @@ -313,8 +313,8 @@ public: /// Populate RequiredPasses with analysis pass that are required by /// pass P and are available. Populate ReqPassNotAvailable with analysis /// pass that are required by pass P but are not available. - void collectRequiredAnalysis(SmallVector<Pass *, 8> &RequiredPasses, - SmallVector<AnalysisID, 8> &ReqPassNotAvailable, + void collectRequiredAnalysis(SmallVectorImpl<Pass *> &RequiredPasses, + SmallVectorImpl<AnalysisID> &ReqPassNotAvailable, Pass *P); /// All Required analyses should be available to the pass as it runs! Here |