X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FIR%2FLegacyPassManagers.h;fp=include%2Fllvm%2FIR%2FLegacyPassManagers.h;h=ab2e2280f9a2a36a91dd95c0f24d33af24dbc52b;hp=2bb534057f4852f496dc0da69a3c32082c7a8ae5;hb=b29f7b83bb290ebc42d28cbb05836f043b507aab;hpb=37d7ddff3efc44da34a33e08b8f2f94e16505ef3 diff --git a/include/llvm/IR/LegacyPassManagers.h b/include/llvm/IR/LegacyPassManagers.h index 2bb534057f4..ab2e2280f9a 100644 --- a/include/llvm/IR/LegacyPassManagers.h +++ b/include/llvm/IR/LegacyPassManagers.h @@ -204,10 +204,7 @@ public: virtual ~PMTopLevelManager(); /// Add immutable pass and initialize it. - inline void addImmutablePass(ImmutablePass *P) { - P->initializePass(); - ImmutablePasses.push_back(P); - } + void addImmutablePass(ImmutablePass *P); inline SmallVectorImpl& getImmutablePasses() { return ImmutablePasses; @@ -253,6 +250,9 @@ private: /// Immutable passes are managed by top level manager. SmallVector ImmutablePasses; + /// Map from ID to immutable passes. + SmallDenseMap ImmutablePassMap; + DenseMap AnUsageMap; /// Collection of PassInfo objects found via analysis IDs and in this top