Change PMTopLevelManager's PassManagers vector element type from
authorDan Gohman <gohman@apple.com>
Thu, 13 Mar 2008 01:48:32 +0000 (01:48 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 13 Mar 2008 01:48:32 +0000 (01:48 +0000)
commit0961ec1afe336a0a4f523455c25f5d5edc8d3ee1
treeb2e8c2ce6c6d72c79366cc7c9eb94c2dcbc172af
parentc2f12ab5e5258a949c0cfff074bf57fe0c08d4e5
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
include/llvm/PassManagers.h
lib/VMCore/PassManager.cpp