diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-11-13 02:56:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-11-13 02:56:38 +0000 |
commit | 310fa65ab9acb96319d0fcb779cdd35350f5d00f (patch) | |
tree | 472efe65f1bb15cef1c7818753ee7ab2975311f6 /include | |
parent | cf6b6131dd0da37903a6e3a5173ea12aa8263713 (diff) | |
download | llvm-310fa65ab9acb96319d0fcb779cdd35350f5d00f.tar.gz llvm-310fa65ab9acb96319d0fcb779cdd35350f5d00f.tar.bz2 llvm-310fa65ab9acb96319d0fcb779cdd35350f5d00f.tar.xz |
Revert r167759. Ben is right this isn't likely to help much.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/PassManagers.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index 3acbf0e2c0..0af5853380 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -263,7 +263,7 @@ private: class PMDataManager { public: - explicit PMDataManager() : TPM(NULL), PassVectorSize(0), Depth(0) { + explicit PMDataManager() : TPM(NULL), Depth(0) { initializeAnalysisInfo(); } @@ -344,7 +344,7 @@ public: void dumpPreservedSet(const Pass *P) const; virtual unsigned getNumContainedPasses() const { - return PassVectorSize; + return (unsigned)PassVector.size(); } virtual PassManagerType getPassManagerType() const { @@ -369,16 +369,14 @@ protected: // Top level manager. PMTopLevelManager *TPM; + // Collection of pass that are managed by this manager + SmallVector<Pass *, 16> PassVector; + // Collection of Analysis provided by Parent pass manager and // used by current pass manager. At at time there can not be more // then PMT_Last active pass mangers. std::map<AnalysisID, Pass *> *InheritedAnalysis[PMT_Last]; - // Collection of pass that are managed by this manager - SmallVector<Pass *, 16> PassVector; - - // Cache the size of PassVector - unsigned PassVectorSize; /// isPassDebuggingExecutionsOrMore - Return true if -debug-pass=Executions /// or higher is specified. @@ -446,7 +444,7 @@ public: } FunctionPass *getContainedPass(unsigned N) { - assert ( N < PassVectorSize && "Pass number out of range!"); + assert ( N < PassVector.size() && "Pass number out of range!"); FunctionPass *FP = static_cast<FunctionPass *>(PassVector[N]); return FP; } |