summaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-27 22:21:55 +0000
committerChris Lattner <sabre@nondot.org>2006-08-27 22:21:55 +0000
commit2dd3d423aae84649c434b2a58ba4ed7e918580d8 (patch)
treeff7eadbe3d8df068b986ff4fbdc8e15d0c52dd70 /lib/VMCore
parenta4be053d7d5428e4259ec0c2509283c892dec7f1 (diff)
downloadexternal_llvm-2dd3d423aae84649c434b2a58ba4ed7e918580d8.zip
external_llvm-2dd3d423aae84649c434b2a58ba4ed7e918580d8.tar.gz
external_llvm-2dd3d423aae84649c434b2a58ba4ed7e918580d8.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Pass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp
index dc49ac6..a06f084 100644
--- a/lib/VMCore/Pass.cpp
+++ b/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) {