[llvm-commits] CVS: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
Devang Patel
dpatel at apple.com
Thu Feb 1 14:38:48 PST 2007
Changes in directory llvm/lib/Analysis/IPA:
CallGraphSCCPass.cpp updated: 1.17 -> 1.18
---
Log message:
Dump function names when debug-pass=Executions is used.
---
Diffs of the changes: (+5 -1)
CallGraphSCCPass.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff -u llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.17 llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.18
--- llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.17 Thu Feb 1 16:09:37 2007
+++ llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp Thu Feb 1 16:38:33 2007
@@ -19,6 +19,7 @@
#include "llvm/Analysis/CallGraph.h"
#include "llvm/ADT/SCCIterator.h"
#include "llvm/PassManagers.h"
+#include "llvm/Function.h"
using namespace llvm;
//===----------------------------------------------------------------------===//
@@ -107,8 +108,11 @@
std::vector<CallGraphNode*> &SCC = *I;
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
Function *F = SCC[i]->getFunction();
- if (F)
+ if (F) {
+ std::string Msg4 = "' on Function '" + F->getName() + "'...\n";
+ dumpPassInfo(P, Msg1, Msg4);
Changed |= FPP->runOnFunction(*F);
+ }
}
}
StopPassTimer(P);
More information about the llvm-commits
mailing list