diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-11 16:32:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-11 16:32:17 +0000 |
commit | 67a84f1ee682ef8aadde635117ea6a1d16f8f6df (patch) | |
tree | 11976151636e7661deb9a004185c8661f31c5583 /lib/VMCore | |
parent | efb8a9d0c2c6be209c6e34f4249ff14fc232bf9f (diff) |
Include ImmutablePass passes in -debug-pass=Arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 17612c978d..88aaa5e3fa 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -675,6 +675,12 @@ void PMTopLevelManager::dumpArguments() const { return; dbgs() << "Pass Arguments: "; + for (SmallVector<ImmutablePass *, 8>::const_iterator I = + ImmutablePasses.begin(), E = ImmutablePasses.end(); I != E; ++I) + if (const PassInfo *PI = + PassRegistry::getPassRegistry()->getPassInfo((*I)->getPassID())) + if (!PI->isAnalysisGroup()) + dbgs() << " -" << PI->getPassArgument(); for (SmallVector<PMDataManager *, 8>::const_iterator I = PassManagers.begin(), E = PassManagers.end(); I != E; ++I) (*I)->dumpPassArguments(); |