[llvm-commits] CVS: llvm/lib/VMCore/Dominators.cpp Pass.cpp
Reid Spencer
reid at x10sys.com
Mon Dec 6 20:03:57 PST 2004
Changes in directory llvm/lib/VMCore:
Dominators.cpp updated: 1.59 -> 1.60
Pass.cpp updated: 1.63 -> 1.64
---
Log message:
For PR387: http://llvm.cs.uiuc.edu/PR387 :\
Make only one print method to avoid overloaded virtual warnings when \
compiled with -Woverloaded-virtual
---
Diffs of the changes: (+5 -5)
Index: llvm/lib/VMCore/Dominators.cpp
diff -u llvm/lib/VMCore/Dominators.cpp:1.59 llvm/lib/VMCore/Dominators.cpp:1.60
--- llvm/lib/VMCore/Dominators.cpp:1.59 Thu Oct 14 10:47:16 2004
+++ llvm/lib/VMCore/Dominators.cpp Mon Dec 6 22:03:45 2004
@@ -210,7 +210,7 @@
return false;
}
-void ImmediateDominatorsBase::print(std::ostream &o) const {
+void ImmediateDominatorsBase::print(std::ostream &o, const Module* ) const {
Function *F = getRoots()[0]->getParent();
for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I) {
o << " Immediate Dominator For Basic Block:";
@@ -313,7 +313,7 @@
}
}
-void DominatorSetBase::print(std::ostream &o) const {
+void DominatorSetBase::print(std::ostream &o, const Module* ) const {
for (const_iterator I = begin(), E = end(); I != E; ++I) {
o << " DomSet For BB: ";
if (I->first)
@@ -408,7 +408,7 @@
PrintDomTree(*I, o, Lev+1);
}
-void DominatorTreeBase::print(std::ostream &o) const {
+void DominatorTreeBase::print(std::ostream &o, const Module* ) const {
o << "=============================--------------------------------\n"
<< "Inorder Dominator Tree:\n";
PrintDomTree(getRootNode(), o, 1);
@@ -455,7 +455,7 @@
return S;
}
-void DominanceFrontierBase::print(std::ostream &o) const {
+void DominanceFrontierBase::print(std::ostream &o, const Module* ) const {
for (const_iterator I = begin(), E = end(); I != E; ++I) {
o << " DomFrontier for BB";
if (I->first)
Index: llvm/lib/VMCore/Pass.cpp
diff -u llvm/lib/VMCore/Pass.cpp:1.63 llvm/lib/VMCore/Pass.cpp:1.64
--- llvm/lib/VMCore/Pass.cpp:1.63 Sun Sep 19 23:47:19 2004
+++ llvm/lib/VMCore/Pass.cpp Mon Dec 6 22:03:45 2004
@@ -217,7 +217,7 @@
// to print out the contents of an analysis. Otherwise it is not necessary to
// implement this method.
//
-void Pass::print(std::ostream &O) const {
+void Pass::print(std::ostream &O,const Module*) const {
O << "Pass::print not implemented for pass: '" << getPassName() << "'!\n";
}
More information about the llvm-commits
mailing list