diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-17 07:49:44 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-17 07:49:44 +0000 |
commit | 56aac3f6c2d23c68f527c8225c74d833e534a262 (patch) | |
tree | ec4a6d5f8b3872cce54ad1cdc0a1436bb61f6bce /lib/Analysis/CallGraph.cpp | |
parent | 7f66bd28b5e9016f2f6f4ddc52e083352f90ed11 (diff) |
Rename Entity::getName() to Entity::getPrintableName() to make its purpose
more obvious.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CallGraph.cpp')
-rw-r--r-- | lib/Analysis/CallGraph.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Analysis/CallGraph.cpp b/lib/Analysis/CallGraph.cpp index 2ec6d2014d..b4f57b8fde 100644 --- a/lib/Analysis/CallGraph.cpp +++ b/lib/Analysis/CallGraph.cpp @@ -118,10 +118,11 @@ void CallGraph::print(llvm::raw_ostream &os) { for (iterator I = begin(), E = end(); I != E; ++I) { if (I->second->hasCallee()) { ASTContext &Ctx = *CallerCtx[I->second]; - os << "function: " << I->first->getName(Ctx) << " calls:\n"; + os << "function: " << I->first->getPrintableName(Ctx).c_str() + << " calls:\n"; for (CallGraphNode::iterator CI = I->second->begin(), CE = I->second->end(); CI != CE; ++CI) { - os << " " << CI->second->getName(Ctx); + os << " " << CI->second->getName(Ctx).c_str(); } os << '\n'; } |