aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/PassManagers.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-12 00:11:18 +0000
committerDan Gohman <gohman@apple.com>2010-10-12 00:11:18 +0000
commitebb1834e86d8da5fe7c63986bf8f350574a40a6c (patch)
tree1739f4251214181d93a095428f55eaf8ae3be4e5 /include/llvm/PassManagers.h
parentb2b9b768ef59d7b18a8b6f06cce5a8c80aa11f9e (diff)
Use SmallVectorImpl in a bunch of places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassManagers.h')
-rw-r--r--include/llvm/PassManagers.h10
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