[llvm-commits] CVS: llvm/lib/VMCore/Pass.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 27 15:22:11 PDT 2006
Changes in directory llvm/lib/VMCore:
Pass.cpp updated: 1.70 -> 1.71
---
Log message:
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.
---
Diffs of the changes: (+3 -3)
Pass.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/VMCore/Pass.cpp
diff -u llvm/lib/VMCore/Pass.cpp:1.70 llvm/lib/VMCore/Pass.cpp:1.71
--- llvm/lib/VMCore/Pass.cpp:1.70 Thu Jul 6 16:35:01 2006
+++ llvm/lib/VMCore/Pass.cpp Sun Aug 27 17:21:55 2006
@@ -136,7 +136,7 @@
} 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 @@
//
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 @@
registerPass();
InterfaceInfo = &PIObj;
}
- assert(InterfaceInfo->getPassType() == PassInfo::AnalysisGroup &&
+ assert(PIObj.isAnalysisGroup() &&
"Trying to join an analysis group that is a normal pass!");
if (Pass) {
More information about the llvm-commits
mailing list