mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
More migration to raw_ostream, the water has dried up around the iostream hole.
- Some clients which used DOUT have moved to DEBUG. We are deprecating the "magic" DOUT behavior which avoided calling printing functions when the statement was disabled. In addition to being unnecessary magic, it had the downside of leaving code in -Asserts builds, and of hiding potentially unnecessary computations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -75,7 +75,7 @@ public:
|
||||
virtual void print(std::ostream &o, const Module *M) const {
|
||||
o << "CallGraph Root is: ";
|
||||
if (Function *F = getRoot()->getFunction())
|
||||
o << F->getName() << "\n";
|
||||
o << F->getNameStr() << "\n";
|
||||
else
|
||||
o << "<<null function: 0x" << getRoot() << ">>\n";
|
||||
|
||||
@ -244,13 +244,13 @@ CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) {
|
||||
|
||||
void CallGraphNode::print(std::ostream &OS) const {
|
||||
if (Function *F = getFunction())
|
||||
OS << "Call graph node for function: '" << F->getName() <<"'\n";
|
||||
OS << "Call graph node for function: '" << F->getNameStr() <<"'\n";
|
||||
else
|
||||
OS << "Call graph node <<null function: 0x" << this << ">>:\n";
|
||||
|
||||
for (const_iterator I = begin(), E = end(); I != E; ++I)
|
||||
if (Function *FI = I->second->getFunction())
|
||||
OS << " Calls function '" << FI->getName() <<"'\n";
|
||||
OS << " Calls function '" << FI->getNameStr() <<"'\n";
|
||||
else
|
||||
OS << " Calls external node\n";
|
||||
OS << "\n";
|
||||
|
Reference in New Issue
Block a user