diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-01-14 17:09:04 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-01-14 17:09:04 +0000 |
commit | 6104626b467d22518f16c74cd67cba89168f65d4 (patch) | |
tree | aa0e67669fc2f4fab1d1189fbe994c28258ca57d | |
parent | 2f46bb8178e30e3b845859a44b57c048db06ef84 (diff) | |
download | external_llvm-6104626b467d22518f16c74cd67cba89168f65d4.zip external_llvm-6104626b467d22518f16c74cd67cba89168f65d4.tar.gz external_llvm-6104626b467d22518f16c74cd67cba89168f65d4.tar.bz2 |
minor simplification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62232 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 5aac296..1dfca60 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -247,8 +247,8 @@ void CallGraphNode::print(std::ostream &OS) const { OS << "Call graph node <<null function: 0x" << this << ">>:\n"; for (const_iterator I = begin(), E = end(); I != E; ++I) - if (I->second->getFunction()) - OS << " Calls function '" << I->second->getFunction()->getName() <<"'\n"; + if (Function *FI = I->second->getFunction()) + OS << " Calls function '" << FI->getName() <<"'\n"; else OS << " Calls external node\n"; OS << "\n"; |