[llvm-commits] [llvm] r66700 - in /llvm/trunk: include/llvm/Analysis/SparsePropagation.h lib/Analysis/SparsePropagation.cpp
Torok Edwin
edwintorok at gmail.com
Wed Mar 11 13:50:18 PDT 2009
Author: edwin
Date: Wed Mar 11 15:50:17 2009
New Revision: 66700
URL: http://llvm.org/viewvc/llvm-project?rev=66700&view=rev
Log:
Make Print callable from a pass's print method: add const qualifier. No
functionality change.
Modified:
llvm/trunk/include/llvm/Analysis/SparsePropagation.h
llvm/trunk/lib/Analysis/SparsePropagation.cpp
Modified: llvm/trunk/include/llvm/Analysis/SparsePropagation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/SparsePropagation.h?rev=66700&r1=66699&r2=66700&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/SparsePropagation.h (original)
+++ llvm/trunk/include/llvm/Analysis/SparsePropagation.h Wed Mar 11 15:50:17 2009
@@ -138,7 +138,7 @@
///
void Solve(Function &F);
- void Print(Function &F, std::ostream &OS);
+ void Print(Function &F, std::ostream &OS) const;
/// getLatticeState - Return the LatticeVal object that corresponds to the
/// value. If an value is not in the map, it is returned as untracked,
Modified: llvm/trunk/lib/Analysis/SparsePropagation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/SparsePropagation.cpp?rev=66700&r1=66699&r2=66700&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/SparsePropagation.cpp (original)
+++ llvm/trunk/lib/Analysis/SparsePropagation.cpp Wed Mar 11 15:50:17 2009
@@ -310,7 +310,7 @@
}
}
-void SparseSolver::Print(Function &F, std::ostream &OS) {
+void SparseSolver::Print(Function &F, std::ostream &OS) const {
OS << "\nFUNCTION: " << F.getNameStr() << "\n";
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
if (!BBExecutable.count(BB))
More information about the llvm-commits
mailing list