mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 19:31:50 +00:00
Eliminate some duplicated debug code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20cd136c5d
commit
269dbf5f5e
@ -264,28 +264,7 @@ void BUDataStructures::calculateGraph(DSGraph &Graph) {
|
||||
|
||||
DSGraph::ReturnNodesTy &ReturnNodes = Graph.getReturnNodes();
|
||||
|
||||
// Print out multi-call sites.
|
||||
bool Printed = false;
|
||||
for (std::list<DSCallSite>::iterator I = TempFCs.begin(), E = TempFCs.end();
|
||||
I != E; ++I) {
|
||||
if (!I->isDirectCall()) {
|
||||
DSNode *Node = I->getCalleeNode();
|
||||
if (Node->getGlobals().size() > 1) {
|
||||
if (!Printed)
|
||||
std::cerr << "In Fns: " << Graph.getFunctionNames() << "\n";
|
||||
std::cerr << " calls " << Node->getGlobals().size()
|
||||
<< " fns from site: " << I->getCallSite().getInstruction()
|
||||
<< " " << *I->getCallSite().getInstruction();
|
||||
unsigned NumToPrint = Node->getGlobals().size();
|
||||
if (NumToPrint > 5) NumToPrint = 5;
|
||||
std::cerr << " Fns =";
|
||||
for (unsigned i = 0; i != NumToPrint; ++i)
|
||||
std::cerr << " " << Node->getGlobals()[i]->getName();
|
||||
std::cerr << "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
while (!TempFCs.empty()) {
|
||||
DSCallSite &CS = *TempFCs.begin();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user