Dump function names when debug-pass=Executions is used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2007-02-01 22:38:33 +00:00
parent fd905caa77
commit 95ced11b1a

View File

@ -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 @@ bool CGPassManager::runOnModule(Module &M) {
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);