aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-13 01:48:32 +0000
committerDan Gohman <gohman@apple.com>2008-03-13 01:48:32 +0000
commit0961ec1afe336a0a4f523455c25f5d5edc8d3ee1 (patch)
treeb2e8c2ce6c6d72c79366cc7c9eb94c2dcbc172af /include
parentc2f12ab5e5258a949c0cfff074bf57fe0c08d4e5 (diff)
downloadexternal_llvm-0961ec1afe336a0a4f523455c25f5d5edc8d3ee1.zip
external_llvm-0961ec1afe336a0a4f523455c25f5d5edc8d3ee1.tar.gz
external_llvm-0961ec1afe336a0a4f523455c25f5d5edc8d3ee1.tar.bz2
Change PMTopLevelManager's PassManagers vector element type from
Pass* to PMDataManager*. PMDataManager is more specific than Pass, so this more accurately describes the objects that are being stored. This eliminates the need for several dynamic_casts to PMDataManager*. It does introduce one dynamic_cast though, in dumpPasses(). Give this one a comment describing why a dynamic_cast is being used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/PassManagers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h
index 44c932a..eaa6f44 100644
--- a/include/llvm/PassManagers.h
+++ b/include/llvm/PassManagers.h
@@ -150,7 +150,7 @@ public:
return ImmutablePasses;
}
- void addPassManager(Pass *Manager) {
+ void addPassManager(PMDataManager *Manager) {
PassManagers.push_back(Manager);
}
@@ -172,7 +172,7 @@ public:
protected:
/// Collection of pass managers
- std::vector<Pass *> PassManagers;
+ std::vector<PMDataManager *> PassManagers;
private: