diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 00:23:56 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 00:23:56 +0000 |
commit | 0dd5e1ed393451be89d6bc8ff54901a359e5bf49 (patch) | |
tree | 7e42230fc39ac6c506a2bb5358bacbf4c7d93450 /llvm/lib/Analysis/IPA/CallGraph.cpp | |
parent | f2972561367ecc6b5e03cb05a8a604427ceec6f6 (diff) | |
download | bcm5719-llvm-0dd5e1ed393451be89d6bc8ff54901a359e5bf49.tar.gz bcm5719-llvm-0dd5e1ed393451be89d6bc8ff54901a359e5bf49.zip |
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.
llvm-svn: 77019
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r-- | llvm/lib/Analysis/IPA/CallGraph.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp index 6dabcdb94bf..4d15a48d4e1 100644 --- a/llvm/lib/Analysis/IPA/CallGraph.cpp +++ b/llvm/lib/Analysis/IPA/CallGraph.cpp @@ -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"; |