diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:21:55 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:21:55 +0000 |
| commit | fbb46500cf21ff15c9b0ac18c7f69417bdf7571f (patch) | |
| tree | ccdfeabf898c819b77f6e5da1ba45f87ede46155 /llvm/lib | |
| parent | 68e53db664ad62715ddcf29f77cb73f7601ff457 (diff) | |
| download | bcm5719-llvm-fbb46500cf21ff15c9b0ac18c7f69417bdf7571f.tar.gz bcm5719-llvm-fbb46500cf21ff15c9b0ac18c7f69417bdf7571f.zip | |
We no longer care whether something is an opt vs analysis pass, only whether
something is a pass vs an analysis group now. Simplify interfaces.
llvm-svn: 29920
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Pass.cpp b/llvm/lib/VMCore/Pass.cpp index dc49ac6aeec..a06f08464d3 100644 --- a/llvm/lib/VMCore/Pass.cpp +++ b/llvm/lib/VMCore/Pass.cpp @@ -136,7 +136,7 @@ void PMDebug::PrintArgumentInformation(const Pass *P) { } else { // Normal pass. Print argument information... // Print out arguments for registered passes that are _optimizations_ if (const PassInfo *PI = P->getPassInfo()) - if (PI->getPassType() & PassInfo::Optimization) + if (!PI->isAnalysisGroup()) std::cerr << " -" << PI->getPassArgument(); } } @@ -376,7 +376,7 @@ static std::map<const PassInfo *, AnalysisGroupInfo> *AnalysisGroupInfoMap = 0; // RegisterAGBase::RegisterAGBase(const std::type_info &Interface, const std::type_info *Pass, bool isDefault) - : RegisterPassBase(Interface, PassInfo::AnalysisGroup), + : RegisterPassBase(Interface), ImplementationInfo(0), isDefaultImplementation(isDefault) { InterfaceInfo = const_cast<PassInfo*>(Pass::lookupPassInfo(Interface)); @@ -385,7 +385,7 @@ RegisterAGBase::RegisterAGBase(const std::type_info &Interface, registerPass(); InterfaceInfo = &PIObj; } - assert(InterfaceInfo->getPassType() == PassInfo::AnalysisGroup && + assert(PIObj.isAnalysisGroup() && "Trying to join an analysis group that is a normal pass!"); if (Pass) { |

