mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
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:
parent
fd905caa77
commit
95ced11b1a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user