We no longer care whether something is an opt vs analysis pass, only whether
[oota-llvm.git] / lib / VMCore / Pass.cpp
index dc49ac6aeecafb01ae6bfe718f98c5c2a07fbe80..a06f08464d34d602ede5a0fad978116d1d81cfac 100644 (file)
@@ -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) {